Best way to get date on YYYYMMDD format – codereview.stackexchange.com

I'm looking for the best way to return a date on a YYYYMMDD format : i.e. : 20170106 Here is how I do it : var x = new Date(); var y = x.getFullYear().toString(); var m = (x.getMonth() + ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Best way to get date on YYYYMMDD format – codereview.stackexchange.com"