# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fw7Z3Cs5OVRBQoLT0AxtA%2F0.png?alt=media)

**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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FZmXXo3lnt47YLE6bfVjR%2F1.png?alt=media)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F9TelGDtQYryQDT5IMr0Q%2F2.png?alt=media)
