# ToJulianDayNumber (DateTime)

| **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                                                   |

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/koI8VG3zMDUBEcXDff0A/0.png)

**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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/E1XZiTNuRBqwaqZY4zds/1.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/5jCiVC29EzWGJlv9Lwwb/2.png)
