예제 #1
0
 //##################################################
 //# constructor
 //##################################################//
 public JwDatePolicyIso()
 {
     _formatter = new JwDateFormatter(FORMAT);
     _parser = new JwDateParser();
     _parser.SetSeparator('-');
 }
예제 #2
0
 public static JwDate ParseXsd(String s)
 {
     JwDateParser e;
     e = new JwDateParser();
     e.SetSeparator('-');
     e.SetOneNumberMode(ONE_NUMBER_MODE_NONE);
     e.SetTwoNumberMode(TWO_NUMBER_MODE_NONE);
     e.SetThreeNumberMode(THREE_NUMBER_MODE_YEAR_MONTH_DAY);
     return e.Parse(s);
 }