Sunday, January 30, 2011

Ruby: convert string to date


Date.strptime("{ 2009, 4, 15 }", "{ %Y, %m, %d }")
http://stackoverflow.com/questions/2720907/ruby-convert-string-to-date

No comments:

Post a Comment