4 Replies Latest reply on Feb 20, 2007 6:43 PM by shane.bryzak

    Date

    konikoni

       

      //get aktuell locale
       Locale locale = localeSelector.getLocale();
      
       //make calendar
       Calendar cal = new GregorianCalendar( TimeZone.getTimeZone("ECT") );
      
       //format date to locale
       DateFormat formater = DateFormat.getDateInstance(
       DateFormat.FULL, locale );
       this.actdate = formater.format(cal.getTime()).toString();



      how can i output date such date on page?

      need i entity bean with attribute or there are quicky possibility?