One of the easiest things to use for date is datejs (http://www.datejs.com/)
You can use the toString method to provide the format in which you want to get the date. There are much more useful components for date manipulation in this library. Do check it out.