Board index » delphi » Convert Date/Time throughout SQL table
mouse
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Convert Date/Time throughout SQL table
Hi all,
I am working on an ActiveXForm project that uses data in an SQL The problem that I am having is that the date/time formats are not I have therefore decided that I will clean up the data in the SQL I have been able to clean up the dates using an SQL script that WHILE @@fetch_status = 0 FETCH NEXT FROM date_curs INTO @old_date The above code replaces all '1/1/99' dates with '1/1/1900'. My main problem however, is with time: I need to add dates to time fields that contain only time For example, some of the time data that was entered directly into '9/11/98 1:15:45 PM' The above contains both date and time although I only need time The Access 97 time data however, is in the format : 12:00:00 AM Without the date. I need to have all times in the SQL format which includes both Can anyone help me devise the correct SQL cursor syntax that I can specifically replace '12:00:00 AM' using the above code, Thanks in advance for any and all help. jeff alerta |