DateTime Format

M

Mohamed Zaki

Dear All,

I'm using the object model of Microsoft CRM to reteive the cases from an
asp.net application however the datetime fields are returned in the
resultset in this format "2005-02-10T04:54:17+02:00"
how can i convert it to the normal format dd-MMM-yyyy time ?

Thank you for you help.

Regards,
Mohamed
 
L

Lars Netzel

Date.ToShortDateString() will give you just the date.

Or you can use a data Formatting Expression

{0:dd-MM-yyy}

/Lars
 

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

Members online

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top