I am implementing a Facebook application and using AJAX/JSON.
However the JSON structures that are returned have this format 2010-05
2010-05
Definitely easier to do it on the server side. You can do a gsub regex to put it into the format you want, or a time.strftime, then generating your json with that string.