how to parse string into a date pattern using dojo
- by Dojouser
Hi,
I have a value as '05/17/2010'
I would like to get it as May 17, 2010 by using dojo.date.locale.I have tried using the dojo.date.locale.parse as follows :
x = '05/17/2010'
var x= dojo.date.locale.parse(x, {datePattern: "MM/dd/yyyy", selector: "date"});
alert(x)
This doesnt give me the desired date pattern
I also tried replacing the pattern as datePattern : "MMMM d, yyyy" but it returns me null.
Any help highly appreciated.
Thanks