I have a code, where i want to show the current month. is there a funtion like $month or $Calendar.get(Calendar.MONTH)?
Thanks Abrami Avi wrote: > > Your question is vague and therefore open to interpretation. > Malcolm is referring to the class "org.apache.velocity.VelocityContext". > You don't get the current month and year in Velocity, you get it from > the core java classes. > Specifically the "java.util.Calendar" class. > > Perhaps you can provide more details, preferrably the relevant part of > your code. > > Good Luck! > > -----Original Message----- > From: deligeli [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 22, 2008 5:30 PM > To: [email protected] > Subject: Re: using date > > > how do i do it? > where is the VelocityContext located? > > Malcolm Edgar-2 wrote: >> >> You need to add it to the VelocityContext model so you can access it >> in the template. >> >> regards Malcolm Edgar >> >> On Sun, Jun 22, 2008 at 10:19 PM, deligeli <[EMAIL PROTECTED]> wrote: >>> >>> HI! >>> I need to get the current month and year. >>> >>> What's the way to get it in velocity? >>> -- >>> View this message in context: >>> http://www.nabble.com/using-date-tp18054049p18054049.html >>> Sent from the Velocity - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/using-date-tp18054049p18055071.html > Sent from the Velocity - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/using-date-tp18054049p18055239.html Sent from the Velocity - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
