|
-
Jan 15th, 2006, 11:04 PM
#1
[RESOLVED] hardcoding dates
is it possible to hardcode dates similar to vb.net, #1/1/1900#, or is the only option to use DateTime.Parse("1/1/1900"), etc.
-
Jan 17th, 2006, 06:14 AM
#2
Re: hardcoding dates
Use DateTime.Parse.
-
Jan 17th, 2006, 06:54 AM
#3
Re: hardcoding dates
Or "new DateTime(1900, 1, 1)" I guess. I must say that I was surprised that C# has no in-built date type either. I suppose the in-built type and the literal notation go hand in hand.
-
Jan 17th, 2006, 07:32 AM
#4
Re: hardcoding dates
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|