Skip to content Skip to sidebar Skip to footer

How To Convert Openweathermap Date Parameter (dt_date)

I am using the open weather map API and I'm trying to figure out how to convert the date format which is by default 'yyyy-mm-dd hh:mm:ss'. I would like to simply display the day su

Solution 1:

There is no specific method to get a day for a particular date. You can use momentjs library for it and can get the date format.

moment().format('dddd')

This would give you the day.

Post a Comment for "How To Convert Openweathermap Date Parameter (dt_date)"