I have the collection orders
and i want to take month and year of the variable “createdAt” ;
i use momentsjs in the app.
orders.createdAt
I have the collection orders
and i want to take month and year of the variable “createdAt” ;
i use momentsjs in the app.
orders.createdAt
I would use
moment(orders.createdAt).format("MM/YYYY");