Re: String as Datetime
From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 05/26/04
- Next message: Laszlo Szijarto: "Re: Converting byte array to string."
- Previous message: Ollie: "Re: Manually generating Interop assembly failing......"
- In reply to: msnews.microsoft.com: "String as Datetime"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 May 2004 09:34:39 -0400
I don't think that what you want to do is possible. I don't believe
there is a syntax for representing a date time as a string in code. You
will have to create a string, and then actually execute code to change it
into a DateTime, as others have indicated.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"msnews.microsoft.com" <david_dvali@hotmail.com> wrote in message
news:%23PKT02vQEHA.1620@TK2MSFTNGP12.phx.gbl...
> Hello.
> How can I specify datetime by string?
> In VB.NET I can write by "#" simbol like this: #10/12/2004 12:00#.
> How can I do it in C#?
>
>
- Next message: Laszlo Szijarto: "Re: Converting byte array to string."
- Previous message: Ollie: "Re: Manually generating Interop assembly failing......"
- In reply to: msnews.microsoft.com: "String as Datetime"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|