Change the Data Format for a Date and Time

To change the data format for a date and time, do the procedure in this topic.

Figure: Convert Date screen

Convert Date screen

Examples

Good to Know

How to Start

  1. On the Application Explorer screen, do one of these:
  2. Do one of these:
    • Add an activity:
      1. In the Process Builder, in the Activity Library, open the Utilities Utilities icon tab.
      2. On the Utilities Utilities icon tab, drag the Convert Date Format Convert Date Format icon activity onto your process.
    • Change an activity:
      1. In your process, double-click your activity.
  3. Click Convert Date Format Convert Date Format icon.

Procedure

  1. On the Convert Date screen, complete these fields as necessary.
    Field Name Value

    Input Date Time

    Function:
    Specifies the reference date for your date calculation.

    Two Date Time fields are available: Input Date Time 1 and Input Date Time 2.

    Accepted Values:
    • Custom Attributes - Specifies a process data variable that stores the date-time value and your date-time format.

      You can use Process Data screen to specify a process data variable.

      You can also use a custom date-time format. For more information, refer to Customize Your Date-Time Format.

    • Static - Specifies a static date and time.
    • Now - The date and time the system activity starts at runtime.
    Default Value:
    Custom Attributes
    Example:
    Refer to:

    Date String

    Function:
    Specifies the process data variable that stores the result received from the date calculations if it is in the Date Time format.

    The results of the date calculations that changes from the Date Time format to a String. The format of the string is specified in the list.

    Accepted Values:
    A process data variable that stores the result in the selected String format.
    Default Value:
    None
    Accepts Process Data Variables:
    Yes
    Example:
    Refer to: