Hi All
We have this Sql statement which converts real dates into julian dates. I would like to incorporate this statement into my report so a user could enter a date into a parameter field and the sql expression would convert it, then pass it down to the server as a julian date.
Although this statement works in our SQL I don't know if the syntax is correct for an ODBC connection. (I use ODBC to connect Crystal to our database)
Here's the sql statement;
/* Convert from real date to julian date */
declare @realdate datetime
select @realdate = 'mm/dd/yyyy' --(this would be the Parameter)
select datediff(dd, "1/1/1753", @realdate) + 639906
I know this statement uses variables and I'm not sure if this can be done from within Crystal.
Any ideas ?????
Thx
Nuffsaid.
We have this Sql statement which converts real dates into julian dates. I would like to incorporate this statement into my report so a user could enter a date into a parameter field and the sql expression would convert it, then pass it down to the server as a julian date.
Although this statement works in our SQL I don't know if the syntax is correct for an ODBC connection. (I use ODBC to connect Crystal to our database)
Here's the sql statement;
/* Convert from real date to julian date */
declare @realdate datetime
select @realdate = 'mm/dd/yyyy' --(this would be the Parameter)
select datediff(dd, "1/1/1753", @realdate) + 639906
I know this statement uses variables and I'm not sure if this can be done from within Crystal.
Any ideas ?????
Thx
Nuffsaid.