guys i m getting an error of dateformat null or not null the code is as below please help out



if ( crossobj.visibi lity == "hidden" ) {
ctlToPlaceValue = ctl2
dateFormat=form at;

formatChar = " "
aFormat = dateFormat.spli t(formatChar)
if (aFormat.length <3)
{
formatChar = "/"
aFormat = dateFormat.spli t(formatChar)...