+ Reply to Thread
Results 1 to 6 of 6

convert this export data format 2019-08-28T19:00:00Z

  1. #1
    Registered User
    Join Date
    12-20-2008
    Location
    toronto
    Posts
    7

    convert this export data format 2019-08-28T19:00:00Z

    in tradingview if I export data, the time is in this format on the csv. 2019-08-28T19:00:00Z and the time is off by 4 hr, what can I do to make it 8/28/19 15:00.
    thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: convert this export data format 2019-08-28T19:00:00Z

    I did it with the following steps:
    - importing into excel
    - (probably not needed in your case if the file imports in proper columns) tehxt to columns wit coma as separator (you probably have it already, but we have semicolon as default separator in Poland)
    - Changing all "Z" into an empty string:
    ctrl+H
    Z in search field
    leave empty replace field
    - Changing "T" into space
    ctrl+H
    T in search field
    (single space) in replace field
    - write in some cell =-4/24
    - copy this cell with Ctrl+C
    - select column with dates
    - paste special (open paste special dialog and select "Add" from the options at the bottom)

    - if you obtained numbers not dates (like 43705.625 or similar) format the cells custom as "m/dd/yy hh:mm"


    Shall be ready by now
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: convert this export data format 2019-08-28T19:00:00Z

    misread question

  4. #4
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: convert this export data format 2019-08-28T19:00:00Z

    Another way of doing it, use this Formula;

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Right click on the cell, format cells as Custom - m/dd/yy hh:mm

  5. #5
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: convert this export data format 2019-08-28T19:00:00Z

    I made an function in VBA that converts this ISO8601 date
    Please Login or Register  to view this content.
    This function can either be used in the worksheet to give the outcome which you need to format (same like PaulSP solution)
    Or you can make te function part of any existing code you have to import this type of data
    Attached Files Attached Files

  6. #6
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: convert this export data format 2019-08-28T19:00:00Z

    I see you do not have a excel version in your profile but if you are on a more recent version (2010 or higher) you can also use powerquery to import the CSV files.

    PowerQuery will automaticly recognize the ISO8601 date format and also automaticly converts the time to your local timezone (based on pc settings)
    To explain the timeformat the Z at the end represents "Zulu time" which is simular to UTC or GMT (Greenwich Mean Time), This is the standard time to which all time zones are derived from.
    so in your case you are -4 hours of zulu time. and powerquery will interpret that for you and change the date

    see instruction on how to use powerquery (called get and transform for excel 2013 and later version)
    https://www.myexcelonline.com/blog/i...get-transform/

+ 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. Export result in Excel 2019
    By Poloniumra in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2019, 03:36 PM
  2. Replies: 4
    Last Post: 11-02-2019, 08:54 PM
  3. [SOLVED] VBA (or function) to turn a date into a number i.e 12/31/2019 to 2019.12
    By lynnsong986 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2019, 03:56 PM
  4. Reflect TBF vacancies over 2018-2019/2019-2020 budget year
    By jennah63 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2019, 07:32 PM
  5. Converting text " 12/31/2019 to date format
    By Gerbilsocks in forum Excel General
    Replies: 1
    Last Post: 01-15-2019, 02:21 PM
  6. [SOLVED] Require vba or formula for convert general format data in date format
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-10-2013, 03:53 AM
  7. Export/Convert excel data to calendar
    By larry108 in forum Excel General
    Replies: 2
    Last Post: 03-17-2013, 03:34 PM

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