I am working with Controller device, which maintain user attendance logs. Controller store logs time details like below:
| Controller Time | Actual Time |
|---|---|
| 690581614 | 2021-06-26 20:13:34.000 |
| 690581620 | 2021-06-26 20:13:40.000 |
| 690590751 | 2021-06-26 22:45:51.000 |
It uses internal formula to convert normal date to number date like below
((Year - 2000) * 12 * 31 + (Month - 1) * 31 + (Day - 1)) * (24 * 60 * 60) + Hour * 60 * 60 + Minute * 60 + Second;
If we consider our date time is "2021-06-26 22:45:51.000" then it look like
((2021 - 2000) * 12 * 31 + (06 - 1) * 31 + (26 - 1)) * (24 * 60 * 60) + 22 * 60 * 60 + 45 * 60 + 51;
once we get result : 690590751
Means 690590751 (Controoler DT) == "2021-06-26 22:45:51.000".
---I am getting below values which i want to convert to actual date..Please help me to get proper conversion formula for converting from Controller DT to Normal Date for C#.
690590751 => Normal Date Formula?