Login  Register

How to write a code to know the current month ?

Posted by jsmoraes on Nov 16, 2014; 1:19am
URL: https://support.nabble.com/How-to-write-a-code-to-know-the-current-month-tp7592668.html

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