Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get time part from datetime as timestamp in c#

DateTime dt = DateTime.Parse("6/22/2009 23:00:00");
TimeSpan timeOnly = dt.TimeOfDay;
 
PREVIOUS NEXT
Tagged: #time #part #datetime #timestamp
ADD COMMENT
Topic
Name
1+5 =