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

5Best Answer
51

Leave a Reply

Your email address will not be published. Required fields are marked *