I have current time in milliseconds as - 1454521239279
How do I convert it to 03 FEB 2016 and time as 11:10 PM ?
I have current time in milliseconds as - 1454521239279
How do I convert it to 03 FEB 2016 and time as 11:10 PM ?
Moment parser
moment(1454521239279).format("DD MMM YYYY hh:mm a") //parse integer
moment("1454521239279", "x").format("DD MMM YYYY hh:mm a") //parse string
Moment unix method
moment.unix(1454521239279/1000).format("DD MMM YYYY hh:mm a")
parseInt("123123123312")
suppresses the warning. –
Oxidize If you have 1o digit 1591074937 then you can convert like this.
moment(1591074937*1000).format("DD MMM YYYY")
OR
new Date(1591074937 * 1000)
just do this
moment(1662969163000).format("DD/MM/YYYY")
© 2022 - 2024 — McMap. All rights reserved.