08-16-2018, 10:59 AM
open the workflow editor (for example clicking on the vaue input in a condition), select expression and then format_date. You will see this syntax:
format_date(date,format)
if you select "date" and insert a field you will see
format_date(date_start ,format)
so this should be what you are looking for:
format_date(date_start ,'d.m.Y')
now, to put that in the body of a text you have to put it inside a WorkflowFunction meta-structure, like this:
$(general : (__WorkflowFunction__) '."format_date(date_start ,'d.m.Y') )
https://github.com/tsolucio/coreBOSTests/blob/master/modules/com_vtiger_workflow/VTSimpleTemplate.php#L252
format_date(date,format)
if you select "date" and insert a field you will see
format_date(date_start ,format)
so this should be what you are looking for:
format_date(date_start ,'d.m.Y')
now, to put that in the body of a text you have to put it inside a WorkflowFunction meta-structure, like this:
$(general : (__WorkflowFunction__) '."format_date(date_start ,'d.m.Y') )
https://github.com/tsolucio/coreBOSTests/blob/master/modules/com_vtiger_workflow/VTSimpleTemplate.php#L252
Joe
TSolucio
TSolucio