DateTime format question

  • Thread starter Thread starter dev15
  • Start date Start date
D

dev15

Hi, I'm using VS2005 CF 1 SP3 targeting PPC03
i've searched the forums but couldn't find how to do
this format. I want to force the following date/time format

DD/MM/YYYY HH24:MM:SS

How do i create a datetime object with this format.

Many thanks
 
Well you are not far off

DateTime.Now.ToString("ddMMyyyy HHmmss");
Add stuff format stuff how you want.
 
Back
Top