none
CDate function error

    Question

  • We are running .NET 2.0 ASMX web services on Windows 2003 server on IIS 6.0. We have migrated a legacy VB 6.0 application to .NET 2.0 application using VB.NET. CDATE function is used at many places and we did not replace that with .NET equivalent date functions.

    Recently, we have started encountering issues on our production servers where the below code fails:

    CDATE("11 Jul 2011 21:10:27")

    Error: Conversion from string "11 Jul 2011 21:10:27" to type 'Date' is not valid.

     

    If we perform an iisreset, the same code starts working fine. Could this be due to some recent patch for Windows server/ .NET patch?


    Thursday, September 29, 2011 4:09 AM

All replies

  •  

    have you changed the format in your control panel, click on Regional and Language Options.

    check whether the format is same as your string which is: DDMMYYY HH:MM:SS



    Every second counts..make use of it.
    Thursday, November 03, 2011 4:25 AM