Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2014, 10:51 AM
hwg hwg is offline Default date, time format when importing CSV files Windows 7 64bit Default date, time format when importing CSV files Office 2010 64bit
Novice
Default date, time format when importing CSV files
 
Join Date: Feb 2014
Posts: 8
hwg is on a distinguished road
Default 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?

Excel gets the date format from the regional settings in Windows. 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,
hwg
Reply With Quote
  #2  
Old 10-01-2014, 04:03 PM
hwg hwg is offline Default date, time format when importing CSV files Windows 7 64bit Default date, time format when importing CSV files Office 2010 64bit
Novice
Default date, time format when importing CSV files
 
Join Date: Feb 2014
Posts: 8
hwg is on a distinguished road
Default

No responses? So there's no way to do this?
Reply With Quote
  #3  
Old 10-01-2014, 08:17 PM
gebobs gebobs is offline Default date, time format when importing CSV files Windows 7 64bit Default date, time format when importing CSV files Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Can you attach a sample csv?
Reply With Quote
  #4  
Old 11-17-2014, 08:47 AM
hwg hwg is offline Default date, time format when importing CSV files Windows 7 64bit Default date, time format when importing CSV files Office 2010 64bit
Novice
Default date, time format when importing CSV files
 
Join Date: Feb 2014
Posts: 8
hwg is on a distinguished road
Default

The forum software won't let me upload a ".csv" file, so I have attached it as a ".txt" file.

Also attached is a screenshot of the way it looks when I open it in Excel.

The timestamps contain hh:mm:ss, but the seconds don't show. If I save this back out to csv, it will truncate the seconds.
Attached Images
File Type: png sample.png (19.9 KB, 13 views)
Attached Files
File Type: txt sample.txt (849 Bytes, 8 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default date, time format when importing CSV files Parse date and time from one cell and paste it to another for all files in a folder? chrisd2000 Excel Programming 3 07-03-2014 10:56 AM
Letter date changes when merging with Excel - not the format, the actual date! Smallweed Mail Merge 1 02-07-2014 06:00 PM
How to format cell in order to display *both* time and date SamyCode Excel 3 01-22-2013 03:30 PM
Outlook 2010 does not use default appointment time as shown in Options\Tasks\default Axel Outlook 1 01-19-2012 09:39 AM
Default date, time format when importing CSV files default font for date and time insert kennystringer Word 2 12-21-2011 12:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft