Re: Working with system.DateTime

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Dan Bass (danielbass)
Date: 12/01/04


Date: Wed, 1 Dec 2004 16:53:23 -0000


System.DateTime myDateTime = DateTime.Now;
string myDateTimeString = myDateTime.ToString ( "yyyyMMMdd_HHmm");

"Bredal Jensen" <Bredal.Jensen@mimosa.com> wrote in message
news:OqcpCV81EHA.1152@TK2MSFTNGP14.phx.gbl...
> Hello,
>
> For some reasons tha t i won't mention here, i need to format my system
> datetime object in
> the following form : yyyMMMDD_HHMM.
>
> How can i achieve this in C# .
>
> Many thanks in advance
>
>
> JB
>
>