C#: Long integer to valid time
Write a C# Sharp program which shows that when a time that falls within this range is converted to a long integer value and restored and the original value is adjusted to become a valid time.
Sample Solution:-
C# Sharp Code:
Sample Output:
Invalid Time: False 3/14/2016 2:30:00 AM -> 3/14/2016 2:30:00 AM
Flowchart :

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a C# Sharp program to convert the specified string representation of a date and time to its DateTime equivalent using the specified array of formats, culture-specific format information, and style.
Next: Write a C# Sharp Program to convert the specified Windows file time to an equivalent UTC time.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.