Format DateTime

Category

DateTime Commands

Description

This command allows you to apply formatting to a string. Use this command when you want to apply specific formatting to text or a variable

Parameters

Input

Specify either text or a variable that contains a date or number requiring formatting, e.g., {DateTime.Now}, 1/1/2000.

Input Date Format

Set the input of date format, If this field is blank, BYpass will try to determine automatically, e.g., MM/dd/yy, hh:mm.

Format

Specify the output string format of date value, e.g., MM/dd/yy, hh:mm. Refer to <a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings">here</a> for more information.

Variable Name

Enter variable name to receive output.

Returned Value

This command does not have returned value.

Example Usage

Example Location:

BYpass\Examples\DateTime Commands\Format DateTime\Format DateTime.xml

See Also