Skip to main content

Date Time Format

The Date Time Format component is used to format a DateTime value according to a specified format or custom format. It provides flexibility in formatting date and time values based on various formats and cultures.

Parameters

Format : Select the date time format from a predefined list. This parameter has a type of String. Type : String

Custom Format : If you select the "Custom" option in the Format parameter, you can enter a custom format string. This parameter has a type of String. Type : String

Date : Insert the DateTime value that you want to format. This parameter has a type of DateTime. Type : DateTime

Culture : Insert the culture code for the desired culture. This parameter allows you to specify the culture-specific formatting rules. It has a type of String. Type : String

Result : Returns the formatted date time as a String. This parameter has a type of String. Type : String

Usage

To use the Date Time Format component in your workflow, follow these steps:

Drag and drop the Date Time Format component into your sequence or workflow.

Configure the component by providing the necessary input:

Select the desired date time format from the Format parameter. You can choose from the available predefined formats, such as "Short Date," "Long Date," "Short Time," "Long Time," etc.

If you select the "Custom" format option, enter the custom format string in the Custom Format parameter.

Insert the DateTime value that you want to format into the Date parameter.

Specify the desired culture code in the Culture parameter. This will determine the cultural-specific formatting rules.

Continue building your sequence or workflow by adding other components or actions that require the formatted date time.

Access the formatted date time by referencing the Result output parameter of the Date Time Format component.

By utilizing the Date Time Format component, you can easily format DateTime values according to your desired format or custom format, considering different cultures and formatting rules. This enables you to present date and time information in a clear and standardized manner within your workflow or application.