Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Now() Date doesn't seem to work!!

    I am using Now() to insert the current date into my date field and everytime it inserts the following value .... 0000-00-00

    Anyone help?

    thanks

  • #2
    Super Moderator guelphdad's Avatar
    Join Date
    Mar 2006
    Location
    St. Catharines, Ontario Canada
    Posts
    2,631
    Thanks
    4
    Thanked 147 Times in 138 Posts
    Well you haven't shown us your table creation statement, I'll take a guess and say you are assigning a default value of '0000-00-00' which over rides any insert you do on the table.


  •  

    Posting Permissions

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