N
.Net Sports
I'm trying to initialize a variable inside a PageLoad in
visualstudio.net :
mytoday = DateTime.Now;
...and the error (or Build Task error) says : The name 'mytoday' does
not exist in the class or namespace 'myProject.myfilename'
when i try :
datetime mytoday = DateTime.Now;
I get an error : the type or namespace datetime cant be found
when doing:
string mytoday = DateTime.Now;
or:
int mytoday = DateTime.Now;
I get an error : cannot be implicitly convert System.DateTime to
string
????
..Net Sports
visualstudio.net :
mytoday = DateTime.Now;
...and the error (or Build Task error) says : The name 'mytoday' does
not exist in the class or namespace 'myProject.myfilename'
when i try :
datetime mytoday = DateTime.Now;
I get an error : the type or namespace datetime cant be found
when doing:
string mytoday = DateTime.Now;
or:
int mytoday = DateTime.Now;
I get an error : cannot be implicitly convert System.DateTime to
string
????
..Net Sports