Results 1 to 2 of 2

Thread: Starting Value of Date data-type?

  1. #1

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Starting Value of Date data-type?

    What is the starting value of a variable that is of date data type?

    With VB6 you could use 0 which was basically setting it to no value, what is the .NET equal. I got some kind of 'could not convert date to integer' when I tried to use MinValue. Any suggestions?

  2. #2

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Nevermind my error was from something else, and you can use either DateTime.MinValue or #1/1/1# just in case anyone else needs to know.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width