Date conversion Problem in Up Date Query (wrong date)

KellisR

New Member
Joined
Feb 24, 2002
Messages
11
imported date (text) is 2003-03-24:1220 (GMT Time, but illrelevent)

DateSerial (Clint(Mid$([Date_Field],6,2)), Clint(Mid$([Date_Field],9,2)), Clint(Mid$([Date_Field],1,4))) + Time Serial Clint(Mid$([Date_Field],122)), Clint(Mid$([Date_Field],14,2)),0) returnes 5/26/2010 12:20:00 PM

Mid$([Date_Field],6,2) & "/" & Mid$([Date_Field],9,2) & "/" & Mid$([Date_Field],1,4) returns 03/24/2003 (time not done to keep simple for troubleshooting).

Table is set for text, the table the records are appended to has the fields set for long date. Am trying to get the full, correct date and time in the same field.

Workstation date is correct, time is off by 4 hr, but I can't change (and it is not yet important to the administrator).

Anyone see what I am doing wrong?

TIA

Ron
mailto:ronald.kellis@us.army.mil
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,221,526
Messages
6,160,338
Members
451,637
Latest member
hvp2262

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