# ToJulianDate (DateTime)

| **Name**    | ***ToJulianDate***                                                                       |
| ----------- | ---------------------------------------------------------------------------------------- |
| Syntax      | ToJulianDate (Date dateTime)                                                             |
| Purpose     | To convert a date to a Julian date.                                                      |
| Description | Returns a decimal number indicating Julian date value of the specified date time value.  |
| Return Type | Decimal                                                                                  |
| Parameter   | dateTime \[System.DateTime] – DateTime object for which the Julian Date will be returned |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(115\).png)

**Example**

In this example, we will pass a valid date time value to the function transformation object using a *Variables* object.

Where,

*dateTime* ­= 09/08/2050 10:24:30 AM

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(116\).png)

In the output window, you can see that the provided date time value has been converted into a Julian date.

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(116\).png)
