How to write a code to know the current month ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to write a code to know the current month ?

jsmoraes
I need help to write a code to know the current month.  My intention is in the last_post_column macro format the date with bold if it is the current month.

something like:

The current month today is November - or in Nabble short format: Nov

<n.set_var. name="varcurrentmonth"> ????? I don't know how to do it ?????? </n.set_var.> 

<n.if.contains_substring string="[text.when_created.short_format/]"  substring="[n.var name='varcurrentmonth'/]"> 
 <then>
       <b><text.when_created.short_format/></b>
 </then>
 <else>
       <text.when_created.short_format/>
 </else>
</n.if.contains_substring>
Observatório de Astronomia de Vilatur - W. Herschel
Saquarema - RJ - Brasil
http://www.astronomia.pousadavilatur.com.br