Answer the question
In order to leave comments, you need to log in
How to convert date in c# without time to unixtime?
Good evening everyone!
There was a question about the date. To convert Datetime C# to UnixTime I use code like this:
var epoch = (timePicker.Value - new DateTime(1970, 1, 1)).TotalSeconds;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question