Results 1 to 4 of 4

Thread: Set date format with timezone offset

  1. #1
    Sencha User
    Join Date
    Sep 2014
    Posts
    2

    Default Set date format with timezone offset

    Hi there,

    I have a date value of "09/03/2014 20:49:41 +05:00". How can I format it in order to show it on a date type of field/column?

    I tried to set the format to be 'm/d/Y H:i P' and result is 09/03/2014 20:49:41 -04:00. And all dates have the same datetimeoffset - -04:00. Is it using machine's timezone data? Is P the correct formatter to use?

    Thanks.

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    Hi,

    I believe that is correct.
    When I run it I get the following which includes my GMT offset:

    Code:
    Wed Sep 03 2014 09:49:41 GMT-0600 (MDT)

  3. #3
    Sencha User
    Join Date
    Sep 2014
    Posts
    2

    Default

    Hi slemmon,I want to see my actual timezone data not the machine's data. Do you have a way to go around this?Thanks.

  4. #4
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    Hi,

    See if this example helps:


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •