How to get the time value from DateTime datatype
c#
Solution
You can try this....
someDateTime.ToString("hh:mm:ss");
Problem
I have DateTime variable, and I need to get ONLY the time value from that variable. How can I do that in C#? Thanks,
c#
You can try this....
someDateTime.ToString("hh:mm:ss");
I have DateTime variable, and I need to get ONLY the time value from that variable. How can I do that in C#? Thanks,