I am trying to format a column in Excel with a date/time, but the format will not work due to a "'" before each date.
How can I eliminate this character without doing a right justify?
WHY are you using a ' to make the value a STRING???
'3/31/2004 2:40:53 PM is NOT a DATE/TIME!
3/31/2004 2:40:53 PM IS a DATE/TIME, which oddly enough in Excel, is REALLY a NUMBER -- 38077.61172
You get the FORMAT that you want by menu item Format/Cell/Number Tab and select a STOCK Date or Time Format or Create a CUSTOM format.
If I enter 3/31/2004 2:40:53 PM, it can be formatted, for instance...
[tt]
Display Format
Wednesday -- "dddd"
Wed, Mar 31, 2004 14:40:53 -- "ddd, mmm dd, yyyy hh:mm:ss"
[/tt]
SAME DATE/TIME value 38077.61172 (BTW the GENERAL Format)
Get rid of the TIC and use REAL Date/Time!!!
Skip,
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
Skip,
This was a data dump. it assigned the "'" to the field. I am trying to eliminate that "'"
I understand the nature of the Date/time...but need to get it to that format.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.