|
Question : Convert date from mm/dd/yyyy to yyyymmdd
|
|
Is there an easy way to convert this date field from mm/dd/yyyy to yyyymmdd
I need to convert the date, then export to csv, then import into a new system (custom database app).
Thanks!
|
|
Answer : Convert date from mm/dd/yyyy to yyyymmdd
|
|
I had tried the custom format already no luck, I also tried the =Text(A1,"yyyymmdd") method, and it did not work. i expect it is somehow because of the way it imported. i figured it out on my own though, here is what i did.
In Excel, menu option: Data Selected "Text to Columns" Split the date into 3 parts, using the "/" as the delimeter. Put the columns in the order that i wanted (YYYYMMDD) Then I combined the columns doing =(A1&B1&C1) This worked like a charm. Then when I did the export to csv it was perfect.
I did run into a different issue, I needed to create the csv with quotes around my fields, that stumped me for a while, then i created a macro to render my csv with quotes, et voila! My csv is now done, and I can get some sleep. I really do appreciate everyone's help, this website has been a godsend for me.
|
|
|
|