Javascript convert unix date to ddmmyy format -
this question has answer here:
- how format javascript date 36 answers
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
Post a Comment