I have parsed an object, containing a GregorianCalendar Object, from java, to JSON, and onwards into a Javascript Object. The object I have in Javascript looks like this when printed in console.log()
Object
dayOfMonth: 27
hourOfDay: 0
minute: 0
month: 4
second: 0
year: 2014
Is there a way to format this through something similar to Java's SimpleDateFormat, into a pattern like dd/mm-yy? Or is it a better approach to parse the Calendar-object to a string before turning it into JSON-format in the first place?