Get String in YYYYMMDD format from JS date object?

Posted by IVR Avenger on Stack Overflow See other posts from Stack Overflow or by IVR Avenger
Published on 2010-06-18T00:54:12Z Indexed on 2010/06/18 1:13 UTC
Read the original article Hit count: 268

Filed under:
|
|

Hi, all.

I'm trying to use JS to turn a date object into a String in YYYMMDD format. Is there an easier way than concatenating Date.getYear() Date.getMonth(), and Date.getDay()?

Thanks,
IVR Avenger

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about date