The best way to convert C# ticks date time to JavaScript Date.
ticks-to-date is free and will always remain free
A simple and quick way to support the project is to buy me a coffee.
It will take no more than 5 minutes and will allow the project to keep going
![Buy me a coffee](https://private-user-images.githubusercontent.com/8006957/325093430-88b6350c-2eb1-4f4c-9179-6f4b2771905b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3MjY0OTQsIm5iZiI6MTcyNDcyNjE5NCwicGF0aCI6Ii84MDA2OTU3LzMyNTA5MzQzMC04OGI2MzUwYy0yZWIxLTRmNGMtOTE3OS02ZjRiMjc3MTkwNWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjdUMDIzNjM0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGY2ODg2OTY4MzQzNmI3NDllODE2MmE0NzAwYWJmMTk0MTlkMDU2N2MyYzU2YTNmYjQ0ZDk5MGUxMTI2MjZlNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.GnSc628DU0Ldll-Wfmyec2HDKePSaMyvHP6_3MYMqLI)
npm install --save-dev ticks-to-date
yarn add ticks-to-date
const ticksToDate = require('ticks-to-date');
const date = ticksToDate(636976874910235300);
console.log(date.toUTCString()); // Tue, 02 Jul 2019 18:04:51 GMT
console.log(date.getUTCDay()); // 2
console.log(date.getUTCMonth()); // 6
console.log(date.getUTCFullYear()); // 2019
// etc...
For more information about Date object see:
https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date
For more information about ticks see:
https://docs.microsoft.com/dotnet/api/system.datetime.ticks
See contributing guideline.