DateTimeFormat Function

Nilesh Ghodekar edited this page Jul 25, 2018 · 5 revisions

Syntax

string DateTimeFormat(date:datetime, format:string)

Description

Formats the value of the first DateTime parameter in the format specified in the second string parameter.

Remarks

If the second input parameter (format string) is null, an exception is thrown. If the first input parameter (date) is null, a null value is returned.

Supported Version

1.0.0.0 and later

Examples

DateTimeFormat(DateTimeNow(),"dd/MM/yyyy HH:mm:ss.ffff")

or if you want just a date in a normal format: DateTimeFormat([//Target/EmployeeEndDate],"yyyy-MM-dd") - you can store it in //WorkflowData and later use it inside a notification template.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.