How I use this formatting?
I tried d-m-Y but not working ...
I tried d-m-Y but not working ...
Ranieri
eCRM Web
eCRM Web
[ solved ] Global Variable EMail_CustomCurrentDate_Format
|
How I use this formatting?
I tried d-m-Y but not working ...
Ranieri
eCRM Web
05-07-2019, 06:58 AM
Have you read this thread: https://discussions.corebos.org/showthread.php?tid=723 ?
the format is a valid PHP format so what you put above is correct, but this only applies to the currentdate variable which is now deprecated in favor of get_date('today')
Joe
TSolucio
so I got it wrong
Because my problem is that when I put in the task of the workflow to sent a email with a create date, for example in tickets the date of creation of the ticket it comes out in the American format I wanted it to come out in the Brazilian format I set this format in the admin account and the user who receives these emails through the workflow, without success
Ranieri
eCRM Web
05-07-2019, 06:19 PM
like as
$(general : (__VtigerMeta__) $createdtimed.m.Y - H:i)
Ranieri
eCRM Web
Reading the thread above and looking at the examples in the unit tests I'd say it is more like this:
$(general : (__WorkflowFunction__) format_date(date_start ,'d.m.Y - H:i') ).
Joe
TSolucio
05-08-2019, 01:04 PM
Ok, you are right, my sintaxe not working ..
I will try $(general : (__WorkflowFunction__) '."format_date(createdtime ,'d.m.Y - H:i') ). Because I think in place of "date_start" is a name in tickets module, right?
Ranieri
eCRM Web
05-08-2019, 04:06 PM
yes, that expression will be evaluated in the context of the record
Joe
TSolucio
05-08-2019, 08:34 PM
There anything wrong with sintaxe
Printed ."format_date(createdtime I try changed a " to ' $(general : (__WorkflowFunction__) '.'format_date(createdtime ,'d.m.Y - H:i') ).
Ranieri
eCRM Web
05-08-2019, 08:39 PM
$(general : (__WorkflowFunction__) format_date(date_start ,'d.m.Y - H:i') ).
Joe
TSolucio |
« Next Oldest | Next Newest »
|