Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Date formatting in emails
#5
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
Joe
TSolucio
Reply


Messages In This Thread
Date formatting in emails - partnerwerk - 09-14-2017, 02:00 PM
RE: Date formatting in emails - joebordes - 09-14-2017, 05:45 PM
RE: Date formatting in emails - joebordes - 09-14-2017, 05:48 PM
RE: Date formatting in emails - joebordes - 08-16-2018, 10:59 AM
RE: Date formatting in emails - joebordes - 08-16-2018, 05:07 PM
RE: Date formatting in emails - joebordes - 08-16-2018, 11:37 PM
RE: Date formatting in emails - joebordes - 08-17-2018, 09:40 AM
RE: Date formatting in emails - joebordes - 08-17-2018, 01:54 PM
RE: Date formatting in emails - joebordes - 08-22-2018, 06:48 PM
RE: Date formatting in emails - joebordes - 12-09-2018, 10:41 AM
RE: Date formatting in emails - joebordes - 05-07-2019, 07:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)