I am implementing a Facebook application and using AJAX/JSON.
However the JSON structures that are returned have this format 2010-05
2010-05
Rails now has the .as_json method on the DateTime object. Life made easier.
.as_json
DateTime