Date formats

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?ZGVlcGFr?=

    Date formats

    Hi All,

    How to convert the date from local time zone to UTC using a function?

    My Local Time Format: 2008-02-18T17:30:00(whe re T is alphabet and denotes
    the word "Time")

    UTC Time Format(which i want):2008-02-18T16:30:00Z(wh ere T means Time and Z
    means a another alphabet( which i think can concat after i gets the UTC date
    second last word i.e 0)

    Thanks,
    Deepak
  • Kevin Spencer

    #2
    Re: Date formats

    Hi Deepak,

    Everything you need is in the following 2 references on the MSDN Library
    online:

    Learn how to use a standard date and time format string to define the text representation of a date and time value in .NET.

    Learn to use custom date and time format strings to convert DateTime or DateTimeOffset values into text representations, or to parse strings for dates & times.


    --
    HTH,

    Kevin Spencer
    Chicken Salad Surgeon
    Microsoft MVP

    "deepak" <deepak@discuss ions.microsoft. comwrote in message
    news:9CE9577A-6DB0-4E8E-900D-A76AC8F97559@mi crosoft.com...
    Hi All,
    >
    How to convert the date from local time zone to UTC using a function?
    >
    My Local Time Format: 2008-02-18T17:30:00(whe re T is alphabet and denotes
    the word "Time")
    >
    UTC Time Format(which i want):2008-02-18T16:30:00Z(wh ere T means Time and
    Z
    means a another alphabet( which i think can concat after i gets the UTC
    date
    second last word i.e 0)
    >
    Thanks,
    Deepak

    Comment

    • =?Utf-8?B?ZGVlcGFr?=

      #3
      Re: Date formats

      Yeah Kevin this was really Helpful.Thanks A LOT.May u kinldy see my next
      question "String Format"
      - Deepak

      "Kevin Spencer" wrote:
      Hi Deepak,
      >
      Everything you need is in the following 2 references on the MSDN Library
      online:
      >
      Learn how to use a standard date and time format string to define the text representation of a date and time value in .NET.

      Learn to use custom date and time format strings to convert DateTime or DateTimeOffset values into text representations, or to parse strings for dates & times.

      >
      --
      HTH,
      >
      Kevin Spencer
      Chicken Salad Surgeon
      Microsoft MVP
      >
      "deepak" <deepak@discuss ions.microsoft. comwrote in message
      news:9CE9577A-6DB0-4E8E-900D-A76AC8F97559@mi crosoft.com...
      Hi All,

      How to convert the date from local time zone to UTC using a function?

      My Local Time Format: 2008-02-18T17:30:00(whe re T is alphabet and denotes
      the word "Time")

      UTC Time Format(which i want):2008-02-18T16:30:00Z(wh ere T means Time and
      Z
      means a another alphabet( which i think can concat after i gets the UTC
      date
      second last word i.e 0)

      Thanks,
      Deepak
      >
      >
      >

      Comment

      Working...