What's the equivalent to jQuery.now in C#? jQuery.now returns a value such as "1472654236737".
I've tried DateTime.now but I'm not sure what the format is.
What's the equivalent to jQuery.now in C#? jQuery.now returns a value such as "1472654236737".
I've tried DateTime.now but I'm not sure what the format is.
If you are on .NET 4.6 then
DateTimeOffset.Now.ToUnixTimeMilliseconds();
is what you are looking for