Showing posts with label tostring(). Show all posts
Showing posts with label tostring(). Show all posts

Saturday, 30 April 2016

Use linq get HH:mm:ss or HH or mm from time data type using c# and use tostring to format datetime

Here , I was describe to get hh:mm or hh and mm format from time or TimeSpan data field using linq in c#. In below show query format to convert time to specific string format.




I will show fetching Hours(hh),Minutes(mm) in debug mode in below as:













Right mouse button click on result and click on quick watch then new windows display here to see highlighted data here as: