I get a datetime value from api in this format: 2022-11-11T08:52:01.000000Z I need to convert it to readable form with javascript.
I need this in any readable form, both time and date should be included
>Solution :
Try it:
import moment from "moment"
const time = "2022-11-11T08:52:01.000000Z"
const formattedDate = moment(time, "DD/MM/YYYY")
console.log(formattedDate)
More information: https://momentjs.com/docs/#/parsing/string-format/