Link to home
Start Free TrialLog in
Avatar of krash0r
krash0r

asked on

equiv of vb's #1/1/2001#

hi all,

just a simple one - how does one write date literals in c#? (can we?)

trying to turn a vb code snippet:

Calendar1.SelectedDate = #12:00:00 AM#

into c#

TIA

ASKER CERTIFIED SOLUTION
Avatar of tpatten
tpatten

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nebulus_
Nebulus_

Calendar1.SelectedDate = DateTime.Parse("8:30:40 PM");
Avatar of krash0r

ASKER

ah that's ok then. yea I'll just have to resort to DateTime.Parse! cheers