I have a date that I am wanting to convert to a Julian date to match up with another field that is stored in another table. I am having some problems seeing how this function from Novick Software works.
CREATE FUNCTION dbo.udf_DT_ToJulian (
@Date datetime -- Date to convert to Julian
) RETURNS int -- Julian date. # days since 1900-01-01
WITH SCHEMABINDING -- This is a deterministic function.
My field is employees_class.postion_start_date in a datetime format. This is what I need to convert to Julian.
Any help is much appreciated.
Thanks
CREATE FUNCTION dbo.udf_DT_ToJulian (
@Date datetime -- Date to convert to Julian
) RETURNS int -- Julian date. # days since 1900-01-01
WITH SCHEMABINDING -- This is a deterministic function.
My field is employees_class.postion_start_date in a datetime format. This is what I need to convert to Julian.
Any help is much appreciated.
Thanks