![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The date in SQL shows up as 729089 Even in Excel the grid shows for eg. the data as 3/29/3896 when I format the date as a Date. I was provided the following information but I am not sure how to change the date to show correctly. ------------------- Platinum SQL Version 4.2 Date solution: 'The next two constants are the same date in SQL and Platinum formats. Global Const gstrPLAT_EQUATE_DATE = "'1/1/98'" Global Const glngPLAT_EQUATE_DATE = 729390 'The SQL expression DATEDIFF(dd,gstrPLAT_EQUATE_DATE,sqldate)+glngPLAT _EQUATE_DATE ' converts a SQL date to the equivalent Platinum date. 'The SQL expression DATEADD(dd,platdate-glngPLAT_EQUATE_DATE,gstrPLAT_EQUATE_DATE) ' converts a Platinum date to the equivalent SQL date Thank you very much for your assistnace. S Commar s_commar (AT) hotmail (DOT) com |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thanks for your assistance. So can I do an update statement. Could you please advise as I am not sure what I have to do exactly to sort this out. Thank you for your assistance. S Commar *** Sent via Developersdex http://www.developersdex.com *** |
![]() |
| Thread Tools | |
| Display Modes | |
| |