<div dir="ltr">Does anyone know how to format the date/time that <font face="courier new, monospace" style="background-color:rgb(238,238,238)">{$Ticket->Created}</font> returns in my email template? I want it to read "Wednesday October 8, 2014 at 5:31 PM (CET)" or "Woensdag 8 oktober 2014 om 17:31 (CET)". (Second version is Dutch.)</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Rinke Colen<div><font size="1">CTO</font></div><div><font size="1"><a href="http://www.linkedin.com/in/rinkecolen" target="_blank">LinkedIn</a> | <a href="mailto:rcolen@experty.com" target="_blank">email</a></font></div><div><br></div><div>experty®</div><div><div><font size="1">t: +31 (0)88 520 77 77</font></div><div><font size="1">w: <a href="http://www.experty.com/" target="_blank">experty.com</a></font></div></div></div></div>
<br><div class="gmail_quote">On Thu, Oct 9, 2014 at 2:03 PM, Rinke Colen <span dir="ltr"><<a href="mailto:rcolen@experty.com" target="_blank">rcolen@experty.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks. I'm afraid I still don't understand what to do however. I looked at the links but the two threads don't really apply to my situation and the RT::Date documentation is too general for me to be able to translate it into a solution, with my limited knowledge of Perl. It clearly has something to do with "Output formatters" but I don't understand how to use them.<div><br></div><div>If it's not too much to ask, then what would really help me is to see some code that could replace <span style="font-family:'courier new',monospace;font-size:13px;background-color:rgb(238,238,238)">{$Ticket->Created}</span> to yield the output I need.</div><div><div><div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div dir="ltr">Rinke</div></div></font></span><div><div class="h5"><div dir="ltr"><br></div><div dir="ltr"><br></div><div class="gmail_quote">On Wed, Oct 8, 2014 at 10:53 PM, Joop <span dir="ltr"><<a href="mailto:jvdwege@xs4all.nl" target="_blank">jvdwege@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On 8-10-2014 17:55, Rinke Colen wrote:<br>
> I want to mention the ticket creation date in an auto reply. I use the<br>
> following code snippet in my email template: {$Ticket->Created}. This<br>
> produces the string "2014-10-08 15:31:24" (UTC) but I want to show<br>
> "October 8, 2014 at 5:31 PM" (CET) is one place and "8 oktober 2014 om<br>
> 17:31" in another place. (The word "oktober" in the second string is<br>
> Dutch.) How can I format the timestamps?<br>
><br>
</span>Have look at the following 3 links:<br>
<a href="http://bestpractical.com/docs/rt/4.2/RT/Date.html" target="_blank">http://bestpractical.com/docs/rt/4.2/RT/Date.html</a><br>
<a href="http://www.gossamer-threads.com/lists/rt/users/52528" target="_blank">http://www.gossamer-threads.com/lists/rt/users/52528</a><br>
<a href="http://www.gossamer-threads.com/lists/rt/users/15445" target="_blank">http://www.gossamer-threads.com/lists/rt/users/15445</a><br>
<span><br>
> On a procedural note: I'm not sure if this question conforms to<br>
> requirements of this mailing list. I have searched the history of this<br>
> list since I joined for an answer, but don't know where to find the rest<br>
> of the history. Also I know very little about Perl. I'm slightly worried<br>
> that my question is too "dumb". But I have many more of these newbie<br>
> questions. Can I just ask them here? (I.e. if I don't find the answer in<br>
> the mailing list history, the documentation on <a href="http://bestpractical.com" target="_blank">bestpractical.com</a><br>
</span>> <<a href="http://bestpractical.com" target="_blank">http://bestpractical.com</a>> or on the the wiki.)<br>
><br>
I'll help any Dutchmen anytime :-)<br>
<br>
Regards,<br>
<br>
Joop</blockquote></div></div></div></div></div></div></div></div>
</blockquote></div><br></div>