Working with system.DateTime

  • Thread starter Thread starter Bredal Jensen
  • Start date Start date
B

Bredal Jensen

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
 
System.DateTime myDateTime = DateTime.Now;
string myDateTimeString = myDateTime.ToString ( "yyyyMMMdd_HHmm");
 
Dan Bass said:
System.DateTime myDateTime = DateTime.Now;
string myDateTimeString = myDateTime.ToString ( "yyyyMMMdd_HHmm");
How nice!
Thousands thanks...
JB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top