DATEFORMAT null or not an object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chitresh kumar
    New Member
    • Oct 2011
    • 1

    #1

    DATEFORMAT null or not an object

    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)
    if (aFormat.length <3)
    {
    formatChar = "."
    aFormat = dateFormat.spli t(formatChar)
    if (aFormat.length <3)
    {
    formatChar = "-"
    aFormat = dateFormat.spli t(formatChar)
    if (aFormat.length <3)
    {
    // invalid date format
    formatChar=""
Working...