excel to mysql date and time conversion problem

innergies

New Member
Joined
Apr 16, 2006
Messages
3
I have searched and searched, but to no avail. Hopefully you guys will be able to help, so here goes...

I'm trying to export a 2000 excel sheet into mysql... that's no problem. What I am having a problem with is the date format. The database that I'm importing into (mysql database) is in the following date format: 20060416 (this would be April 16, 2006). The excel sheet that I have is in normal date format i.e. 04/16/2006. How can I convert the 04/16/2006 in my spreadsheet into 20060416 so that I can export it into the mysql database?

Second question, similiar to the first...
My time format in the database is 213000 (this would be 9:30 PM) and the format I have in my spreadsheet is 09:30:00 PM. Again, anybody know how I can convert 09:30:00 PM into 213000?

Thank you so much for your time!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How can I apply that to the entire column? I've got literally HUNDREDS of entries.

Thanks for the reply... it works perfect for a single cell though. At least I've got a direction now :)
 
Upvote 0
How can I apply that to the entire column? I've got literally HUNDREDS of entries.

Thanks for the reply... it works perfect for a single cell though. At least I've got a direction now :)

If the entries of interest are in A from A2 on and the appropriate formula in B2, select B2, and apply a double click on the Fill Handle of cell B2. Then select again B2, apply Control+Shift+Down Arrow, run Edit|Copy. Then, select A2, appy Control+Shift+Down Arrow, and run Edit|Paste Special with the Values option checked.
 
Upvote 0

Forum statistics

Threads
1,224,266
Messages
6,177,540
Members
452,782
Latest member
ZCapitao

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top