2 Replies Latest reply on Mar 8, 2013 2:08 AM by Nishit Jani

    How to set the date pattern on jsf pages?

    Nishit Jani Newbie



      Using code : 1, I got the date from database is 2012-09-03 00:00:00.0


      Now, I want to set the date pattern to dd-MM-yyyy.


      So my required output is 03-09-2012. 


      But using  code : 2  (after setting the pattern)


      I am getting the output is 02-09-2012  Whatever date is in database, it shows output less by one day.


      In advance thanks.