DateTime Format

Discussion in 'ASP .Net' started by Mohamed Zaki, Feb 14, 2005.

  1. Mohamed Zaki

    Mohamed Zaki Guest

    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
     
    Mohamed Zaki, Feb 14, 2005
    #1
    1. Advertising

  2. Mohamed Zaki

    Lars Netzel Guest

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

    Or you can use a data Formatting Expression

    {0:dd-MM-yyy}

    /Lars
    "Mohamed Zaki" <> wrote in message
    news:%...
    > 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
    >
     
    Lars Netzel, Feb 14, 2005
    #2
    1. Advertising

  3. Mohamed Zaki

    a Guest

    http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondatetimeformatstrings.asp

    Mohamed Zaki wrote:
    > 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
    >
    >
     
    a, Feb 14, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    712
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  2. Tim Peters
    Replies:
    0
    Views:
    538
    Tim Peters
    Sep 9, 2003
  3. mp
    Replies:
    1
    Views:
    392
    John Machin
    Jul 28, 2006
  4. Martin
    Replies:
    0
    Views:
    338
    Martin
    Dec 27, 2008
  5. Replies:
    2
    Views:
    762
    M.-A. Lemburg
    Jan 6, 2009
Loading...

Share This Page