1
votes

I have a datetime column where the data is coming from MongoDB: The date is in a weird format as below:

1620388225713

Can anyone please help how to extract date or datetime from here?

What date does 1620388225713 represent? Is it an epoch? Why have you tagged MySQL and Azure SQL Database? The two are very different products. - Larnu
Probably is Unix time: time.is/Unix_time_converter - pringi
If you pop that value into that site, you get Sat Jan 22 53318 08:28:33, @pringi . ;) - Larnu
It seems to be Unix Time with milli-seconds resolution. Would it be Fri May 07 2021 12:50:25 UTC+0100? If this is the case, mySQL has functions to convert from this format to Date data types. See FROM_UNIXTIME() - chegancasb