Jump to content

Date format in an email template


lomixture

Recommended Posts

Hi all

Is there a way of changing the date format on a custom field in an email template?

As you can see from the screengrab, we are using hcustom fields to pull data from a request, but our teams are complaining its in the American format and it is confusing things.

I've dug about but couldn't find a logical way of changing this, any ideas appreciated.

image.png.5edd69e9733a0aef6559f8519197f3ab.png

Link to comment
Share on other sites

Victor,

I tried to input this as the format {{h.custom_s}|formatlocaltime}} however it stopped any info being pulled through to the template.

Please could you clarify what format this should be input in?

Link to comment
Share on other sites

It didn't work! I tried three different iterations and every time it either left the email form with a blank or only pulled through the format not the actual info.

Would someone be able to tell me what the format should look like if this is what it currently reads? Currently it says:

My leaving date will be
{{.H_custom_s}}

I have tried the following:

{{.H_custom_s}|formatlocaltime}} (this pulls through nothing)
{{.H_custom_s|formatLocalTime}} (this just pulls through the blank code)

Link to comment
Share on other sites

  • 1 month later...
Guest Paul Alexander

Just hijacking this thread for a bit!

Is there a way of converting the .fixby date field to a different date format in an email template?

I understand that I could add the .fixby information to a date/time custom field and then use that with the |formatLocalTime switch, but I don't want to have to do that to all of our Incident processes! 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...