manojrajteli

Date Time Conversion in dojo

Discussion created by manojrajteli on Feb 4, 2013
How to convert a date from following format:

sun, 11 sep 2011 00:00:00 UTC

Into following format

11 sep 2011 using javascript function

i was using this help for conversion http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/widget_infowindowdates


and it work uisng this expression DateFormat(selector: \'date\', fullYear: true , datePattern: "dd MMM yyyy")

but now i have compare to with today date and display the date and run some custom validation.Thank you in advance.

Outcomes