+ Reply to Thread
Results 1 to 7 of 7

specific date format can't convert from EST to GMT

  1. #1
    Registered User
    Join Date
    10-06-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    43

    specific date format can't convert from EST to GMT

    I have the EST time (2023-08-09T14:23:19.000-0400) in B2 and need to convert to GMT in the format of (2023-08-09T18:23:19.000+0000) in D2.
    in my excel file, B2=2023-08-09T14:23:19.000-0400, I define D2=left(B2,19)+TIME(4,0,0) but it is not converting to GMT. anything wrong? thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: specific date format can't convert from EST to GMT

    Is your profile correct? Still using Excel 2003?

    Can't troubleshoot without some sample data.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,141

    Re: specific date format can't convert from EST to GMT

    A file would be helpful, as we have no idea if yur string is text that looks like a number, or is an actual number.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: specific date format can't convert from EST to GMT

    If it is a true date and time, the underlying value will be a number with 5 digits before the decimal point and 5+ digits after it.

    Again, if that is the case, you should be able to copy the value (=B2) and subtract 4/24 and format as required.



    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,363

    Re: specific date format can't convert from EST to GMT

    Try (assuming TEXT string)



    [FORMULA]="(" & TEXT(DATEVALUE(MID(B2,2,10))+TIMEVALUE(MID(B2,13,8))+TIME(4,0,0),"yyyy-mm-ddThh:mm:ss")& ".000+0000)"[\FORMULA]
    Last edited by JohnTopley; 09-04-2023 at 04:04 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    10-06-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: specific date format can't convert from EST to GMT

    The formula shows error, pls see attached.
    Attached Files Attached Files

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: specific date format can't convert from EST to GMT

    Please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by HansDouwe; 09-04-2023 at 04:27 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Convert forced change of date to String or Text format back to Date format in a column
    By analystbank in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-20-2022, 09:17 AM
  2. i have to convert the csv file date format to excel date format
    By arindamsenaxa in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-17-2015, 03:37 AM
  3. Replies: 7
    Last Post: 12-02-2013, 11:01 AM
  4. [SOLVED] Convert date into a specific format
    By Panfergrrl18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2013, 03:01 AM
  5. Cannot convert date (which is in text format) to date in numeric format
    By geniuspro in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-19-2012, 09:21 AM
  6. Need Formula/VBA Code to convert date in String Format to Normal Date format
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2012, 04:54 AM
  7. Convert from a specific date format
    By codepin in forum Excel General
    Replies: 4
    Last Post: 01-08-2009, 11:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1