asp.net - trying to get current date in code behind -
i push button on web page. trying current date 3 variables year, month, , day in code behind have:
dim intday integer intday = date.now.day i error message
input string not in correct format.
suggestions?
there nothing wrong code posted.
see ideone same code compiles , executes fine.
dim intday integer intday = date.now.day console.writeline(intday) the now property returns current time datetime value. on can call day property returns integer
the error message got refers string not in posted code i'm guessing problem somewhere else
Comments
Post a Comment