- TIBCO BusinessEvents®
- Standard
- DateTime

# DateTime.format()

## Signature

`String format (DateTime d1, String format)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Return the DateTime passed as a formatted String.

## Parameters

Name | Type | Description
--- | --- | ---
`d1` | `DateTime` | A DateTime to be formatted.
`format` | `String` | i.e. $1yyyy-MM-dd HH:mm:ss.SSS$1 is correct, but $1yyyy-MM-dd HH:mm:ss.S$1 is not valid.

## Returns

Type | Description
--- | ---
`String` | A String representation of the supplied DateTime in the supplied format.

## Cautions

none