SQL Server can convert a date to a float. For instance '2019-05-23 17:33:16.780' will be 43606.731444213
If I am not mistaken:
- the integer is the number of days past since epoch (beginning of 1900/01/01)
- the decimal part is the percentage of the day past since midnight.
Is there an easy way to do the same conversion in javascript ? I do not want the float number to start from JS epoch.