Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time formatting in workflow emails
We are sending automated emails with scheduled appointments to our customers.

Without formatting the email template looks like this:
Quote:am $date_start um $time_start Uhr

with the following output:
Quote:am 18-08-2018 um 22:42:00 Uhr

Now that is not the desired outcome.
This is how it should look like:
Quote:am 18. August 2018 um 22:42 Uhr

I could find a way to do the date formatting but cannot apply it to get rid of the third digit pair (seconds) for the time. You don't want to get an appointment where they say on which second it starts - even not in Germany.

Is there any solution for this?
Try this one:


You can do the day and year easily and for the month you will have to use the translate() workflow function
This seems to be a misunderstanding. I figured out a way for the date (day, month, year).
But I had no solution to get rid of the seconds of $time_start.

I was just wondering if there is a built in function to customize time output (of $time_start). After I could not find any I built a custom function which is working now.
again, for the time, use:


Forum Jump:

Users browsing this thread: 1 Guest(s)