![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a Clarion serial data that I need to convert to a Btrieve Date. The clarion serial date is based from 28, dec 1800. That is the first day. How can I convert it to a Pervasive Date? I'm using Pervasive 8 and I need to create a stored procedure to do this. With Oracle I can do someting like : oracle_date := ClarionDate# + to_date('01011900','ddmmyyyy'); For MS-SQL : set @ClaRoot = 'Dec 28, 1800' set @MSSQLRoot = 'Jan 01, 1900' set @SqlDate = @ClaDate - datediff(day,@ClaRoot,@MssqlRoot) How can thi be acomplished with Pervasive SQL? TIA Carlos San Miguel |
#3
| |||
| |||
|
|
I have a Clarion serial data that I need to convert to a Btrieve Date. The clarion serial date is based from 28, dec 1800. That is the first day. How can I convert it to a Pervasive Date? I'm using Pervasive 8 and I need to create a stored procedure to do this. With Oracle I can do someting like : oracle_date := ClarionDate# + to_date('01011900','ddmmyyyy'); For MS-SQL : set @ClaRoot = 'Dec 28, 1800' set @MSSQLRoot = 'Jan 01, 1900' set @SqlDate = @ClaDate - datediff(day,@ClaRoot,@MssqlRoot) How can thi be acomplished with Pervasive SQL? TIA Carlos San Miguel |
![]() |
| Thread Tools | |
| Display Modes | |
| |