will.good Posted June 27, 2023 Share Posted June 27, 2023 Hi, We are using Custom Field 21 as a start date for one of our new starter processes. We would like to include this variable in an email template, but are unable to format this as just a date - I am currently trying {{.H_custom_21|dd/mm/yyyy}} but this doesn't appear to be working. How can we get the date to display as just DD/MM/YYYY in the template? Link to comment Share on other sites More sharing options...
Steve Giller Posted June 27, 2023 Share Posted June 27, 2023 The available options are listed on the wiki page. You are basically limited to the value as-is, or as formatted by the system.RegionalSettings.timezone & system.RegionalSettings.dateTimeFormat settings. Link to comment Share on other sites More sharing options...
will.good Posted June 27, 2023 Author Share Posted June 27, 2023 @Steve Giller our date time format is set as however this still displays as 2023-06-30 10:00:00Z also using {{.H_custom_21|formatLocalTime}} does not return any value and the variable is just displayed in the email Link to comment Share on other sites More sharing options...
Steve Giller Posted June 27, 2023 Share Posted June 27, 2023 This is working fine for me: Test 1: Test 2 (after changing system.RegionalSettings.dateTimeFormat): How are you populating the Custom 21 field? Link to comment Share on other sites More sharing options...
will.good Posted June 27, 2023 Author Share Posted June 27, 2023 The Custom 21 Field is being populated directly from the Request Details box on a request at the moment, by the advisor manually by editing the box Link to comment Share on other sites More sharing options...
Steve Giller Posted June 27, 2023 Share Posted June 27, 2023 That'll be why, then. https://wiki.hornbill.com/index.php?title=Mapping_Fields_from_Customised_Forms Link to comment Share on other sites More sharing options...
will.good Posted June 27, 2023 Author Share Posted June 27, 2023 4 minutes ago, Steve Giller said: That'll be why, then. https://wiki.hornbill.com/index.php?title=Mapping_Fields_from_Customised_Forms We are using a date-time picker on the field in the request details Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now