stephenjbell

dotCMS - Convert numeric month to month name

Jun 16th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #set($dateString = "1") ## Or any number corresponding to a month
  2. #set($tempDate = $UtilMethods.parseDate($dateString, "MM"))
  3. #set($monthName = $date.format("MMMM",$tempDate))
  4.  
  5. $monthName
Advertisement
Add Comment
Please, Sign In to add comment