4 Replies Latest reply: Jan 29, 2013 12:22 AM by abdou123 RSS

    how to make custom format mask?

    abdou123
      Hi all,
      i'm working in application using Hijri Dates ( ex : 01/01/1434 ) .
      the data stored in the following format (ex : 01011434 ) .
      to display data i made java method to make format then in viewRowImpl then pass the getAttributeInternal to the method

      public static  String formatHijriDate(String val)
      *{* 
      try
      *{*
      return val.substring(6,8)+"/"+val.substring(4,6)+"/"+ val.substring(0,4);
      *}*
      catch(Exception ex)
      *{*
      return " ";
      *}*
      *}*
      ----------
      is there is a way to make declarative custom format mask to easy my task to format the Hijri dates ?