date Range

hi all

Period format is YYYYMM. Which means MM values is restricted form 01-12. My field is str

can you help me.

thanks in advance

Nani

public boolean validate()

{

boolean ret;

str strDate;

str iMonth;

//Postingperiod _Postingperiod;

;

ret = super();

strDate = PostingPeriod.valueStr();

iMonth = substr(strDate,5,2);

if(iMonth > “12”)

{

throw error(“Please enter proper Date”);

}

return ret;

}