HI all,

I have a string 20121109 (Ymd format or 2012 nov 09). I want to convert this string into a date by supplying the format. Please let me know how can i convert this string into date. I know I can split the string and then I can convert it into date but I dont want to go that way.


I have tried this but it did not worked:
var date = Date.parseDate('20121109', 'Ymd');