DateTime Format

  • Thread starter Thread starter Mohamed Zaki
  • Start date Start date
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
 
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

Back
Top