Conversion from string "23/4/2010" to type 'Date' is not valid.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • m103069
    New Member
    • Apr 2010
    • 2

    #1

    Conversion from string "23/4/2010" to type 'Date' is not valid.

    Dear Friends,

    Error : Conversion from string "23/4/2010" to type 'Date' is not valid.

    This error comes only on hosting server but in locally this is running good.
    Please help.
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    Probably the Regional settings for both systems differ from each other. Make sure that both are set correctly.

    Steven

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      You need to specify the format the date is in when you use the DateTime.Parse method to convert the string into a DateTime structure.

      Check out the DateTime.Parse methods available for you to. One of them will help you to accomplish what you're looking to do.


      -Frinny

      Comment

      Working...