Convert System.DateTime to UNIX timestamp | ||
| ||
| In case of development in clinet/server application, datetime formation conversion is frequently required. TimeSpan is a .NET data structure that represents a duration of time, often used to calculate the difference between two dates or times. It can hold values like days, hours, minutes, seconds, and milliseconds, and allows you to perform various operations on these durations, such as addition, subtraction, and comparison. Following is the simple example for datetime conversion.
| ||
| | ||
| |