Javascript convert unix date to ddmmyy format -


this question has answer here:

i have chart that's giving me date:

1577612800000 

i need convert "ddmmyy" format

i found this:

var timestamp = 1577612800000;                  var date = new date(timestamp * 1000); 

but has no format.

how can format ddmmyy ?

get values date object , generate string concatenation.

var timestamp = 1577612800000;  var date = new date(timestamp);  console.log(    date.getdate() + '' + (date.getmonth()+1) + date.getfullyear()  )


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -