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

c# - IMAP GMAIL getting folder list problem -

PHP proxy to get XML: problem with URL arguments -