+ Reply to Thread
Results 1 to 4 of 4

Default date/time format when importing CSV files

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Default date/time format when importing CSV files

    I often use Excel to view CSV files that contain timestamps.

    When I open the CSV files in excel, the timstamps get formatted to MM/DD/YY hh:mm

    Seconds are not displayed. They are still there. If I edit a timestamp cell I can see the full timestamp, with seconds. But if I then save this file back to CSV, the seconds are truncated, and the CSV only contains the hour and minute of the timestamp, with all seconds showing 00.

    I can reformat all the dates to MM/DD/YY hh:mm:ss after opening the CSV, but that's a pain to do every time. How can I get Excel to use MM/DD/YY hh:mm:ss as the default date/time format when importing CSV files?

    Thanks,
    eb

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,076

    Re: Default date/time format when importing CSV files

    Excel gets the date format from your regional settings in Windows.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Default date/time format when importing CSV files

    Regional settings in Windows have both Long and Short date formats. From Control Panel "Region and Language" -> Formats tab:

    Short gate: M/d/yyyy
    Long date: dddd, MMMM dd, yyyy
    Short time: h:mm tt
    Long time: h:mm:ss tt

    How do I tell Excel to use the Long Time format instead of the Short Time, when importing CSV's? Or, better, how do I tell it to use a format I specify?

    Thanks,
    eb

  4. #4
    Registered User
    Join Date
    03-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Default date/time format when importing CSV files

    I never saw an answer to this. Is there any way to specify what time format is used when importing csv files?

    Thanks,
    eb

+ 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. [SOLVED] Remove "Time" from Date/Time format when importing from MS Query
    By auslegung in forum Excel General
    Replies: 5
    Last Post: 04-03-2013, 03:26 PM
  2. Problem with importing multiple data files with fixed width format
    By sport_logo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-21-2010, 07:34 AM
  3. Importing and counting multiple .txt files at one time.
    By reaperslogic in forum Excel General
    Replies: 1
    Last Post: 06-23-2008, 06:53 PM
  4. [SOLVED] How do I change the default location for importing text files?
    By BWTreadway in forum Excel General
    Replies: 0
    Last Post: 09-30-2005, 02:05 PM
  5. Date problems when importing txt files
    By GC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-02-2005, 02:06 PM

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