c# - How do you get the current time of day in datetime format? -


how current time of day in datetime format?

you can use datetime.timeofday:

timespan currenttime = datetime.now.timeofday; 

this retrieve timespan. if want in "datetime" format, use datetime.now (realizing, of course, includes date).


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -