-
Notifications
You must be signed in to change notification settings - Fork 36
DateTimeFormat Function
string DateTimeFormat(date:datetime, format:string [, cultureName:string])
Formats the value of the first DateTime parameter in the format specified in the second string parameter. If the optional cultureName parameter is not specified, the date is formatted in Invariant culture.
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. If the third option input parameter (cultureName string) is not null and is not a valid culture name, an exception is thrown.
1.0.0.0 and later
DateTimeFormat(DateTimeNow(),"dd/MM/yyyy HH:mm:ss.ffff")
DateTimeFormat(DateTimeNow(),"dd/MM/yyyy HH:mm:ss.ffff", "es-ES")
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.
- MIMWAL Site - http://aka.ms/MIMWAL
- MIMWAL Releases - http://aka.ms/MIMWAL/Releases
- MIMWAL Documentation Wiki - http://aka.ms/MIMWAL/Wiki
- MIMWAL FAQ - http://aka.ms/mimwal/faq
- MIMWAL GitHub Code Repo - http://aka.ms/MIMWAL/Repo
- MIMWAL TechNet Q&A Forum (now read-only) - http://aka.ms/MIMWAL/Forum