Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I read a coloumn "Periode end" and store it in a different sheet
I have the problem that month and day is swapped if they are both < 13. i.e if "Periode end" is 09-03-2009 in the below - 03-09-2009 will be stored in the target cell How to set the read date format? Set rs_SOURCE = New ADODB.Recordset rs_SOURCE.Open "Select [Alert], [Period end] From [VTM,_monitorInstances_export$] where [Unit ID] =" & Right(ms_TEMP, 5), ExcelConn, _ adOpenDynamic, adLockOptimistic 'Update Date .Cells(ml_TARGET_ROW, 10).Value = Format (rs_SOURCE("Period end"), "dd-mm-yyyy") |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula not reading date format | Excel Discussion (Misc queries) | |||
Copnvert dates reading as Text to a date format | Excel Discussion (Misc queries) | |||
Reading from CSV date format | Excel Programming | |||
Date format problems ... | Excel Discussion (Misc queries) | |||
Date Format Problems?? | Excel Discussion (Misc queries) |