© Copyright 2023, Astera Software
Name
ToJulianDayNumber
Syntax
ToJulianDayNumber (Date dateTime)
Purpose
To convert a date to a Julian day number.
Description
Returns an integer representing Julian day number for the specified date time. This function discards the time component of the date time value.
Return Type
Int64
Parameter
dateTime [System.DateTime] – DateTime object for which the Julian day number will be returned
Example
In this example, we will pass a valid date time value to the function transformation object using a Variables object.
Where,
dateTime = 04/10/2020 10:10:25 AM
In the output window, you can see that the provided value has been converted into a Julian day number.