vb.net - How To Declare / Store "12:00:00 AM" in a DateTime Variable? (Through military time) -


i have code:

 dim twelve_amtoday datetime = new datetime(datetime.now.year, datetime.now.month, datetime.now.day, 24, 0, 0) 

but says "hour, minute, , second parameters describe un-representable datetime."

of course 23, 59, 59 read 11:59:59 pm. i've tried 0, 0, 0 gives me date only.

thanks help!

you when use today

 dim twelve_amtoday datetime = today 

if want add days put code under it.

  twelve_amtoday = twelve_amtoday.addyears(0).addmonths(0).adddays(1) 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -