# DateToJulian (Date dateTime, Integer length)

| **Name**    | ***DateToJulian***                                                                                             |
| ----------- | -------------------------------------------------------------------------------------------------------------- |
| Syntax      | DateToJulian (Date dateTime, Integer length)                                                                   |
| Purpose     | To convert the given date time value to Julian format of specified length.                                     |
| Description | Convert the given date time value to Julian format.                                                            |
| Return Type | String                                                                                                         |
| Parameters  | <p>dateTime \[System.DateTime] – Date Time object to be converted into Julian</p><p>length \[System.Int32]</p> |

**Example**

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

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

Where,

*dateTime* = 05/06/2022

*length* = 7

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

In the output window, you can see that the provided date time value has been converted into Julian format of the specified length.

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