date format

Hi,

I have a situation where I need to use the three letter abbreviation for the current month (i.e. Mar for March) rather than the numeric representation.

Besides using the shell or command module to register it as a variable. Is it possible to somehow get this directly in a jinja2 template or a vars file?

Sounds like something Jinja2 can handle pretty easily.

http://stackoverflow.com/questions/4830535/python-how-do-i-format-a-date-in-jinja2

<tim/>

Hi Tim, thanks for the reply. I’ve looked at that prior to posting. Unfortunately, I can’t get it working.

Does anyone have an example showing me how to do this?