DateTime format question

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
 
G

Graham McKechnie

Well you are not far off

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

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

Similar Threads


Top