Date Time Formatter

Overview

The Date Time Formatter Node outputs a date and/or time in a specified format. By using a combination of special format characters, many different date/time formats can be created. This is used mostly for localization, however, it could also be used for formatting based on user preferences.

For generating customized formats for the date and time, format strings are used. For more information about format strings, please see the format strings section below.

Scope: Project, Scene, Function, Prefab.

Attributes

Input

Output

Inputs

Outputs

Format Strings

Format strings are used for generating customized formats for the date and time. To use this, the Custom option has to be chosen in the Format Examples Attribute and then the format string is either given in the Custom Format Attribute or in the Format Input Socket.

This section shows first an example of a customized format string and its corresponding output, and then it gives a list of the format characters, which are the characters that compose a format string.

Example

Setting the format string

h:m:s a, F j, Y.

will generate an output that looks like:

01:09:58 pm, September 14, 2022.

Format characters

Format characters are the characters that compose a format string. The following table shows the most important format characters:

See Also

Last updated