Avatar

Level 10

The Date Control expects data in the format YYYYMMDD.. But your XML is sending the data in MM/DD/YYYY, so you need to convert the input data to the required format. Then only the Display pattern can work.

Put the below code in the Initialize event of the Date control..

Language: FormCalc

$.rawValue = Ltrim(Rtrim($.rawValue));

$.rawValue

= Num2Date(Date2Num($.rawValue,"M/D/YYYY"), "YYYYMMDD");

Thanks

Srini