I am making a simple react app with OpenWeatherMap API. I need date info from that API to show which day is the current day. The API returns me a dt
object I think this is related to date but I can't use it. How can I convert it to a valid date string? I found a topic about this issue but the answer did not satisfy me.
{
"lat": 38.783,
"lon": 41.0466,
"timezone": "Europe/Istanbul",
"timezone_offset": 10800,
"current": {
"dt": 1610733742,
"sunrise": 1610685149,
"sunset": 1610720251,
"temp": 274.58,
"feels_like": 270.28,