Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: Default to current date

Quote Reply
Re: Default to current date In reply to
In Reply To:
when i put 'now' on the date field, it works only for a new record, but the rest of the records (the one that I just imported from flat text), appears to be 0s.
Most likely because the existing dates in your flat-file don't conform to the mySQL DATE format which is YYYY-MM-DD

If you only have a few records in your flat-file it is simple enough to manually change them to the proper format before you import into mySQL table. If not then you'll have to pull your flat-file into something like Access, reformat the date field, then export back out to a flat-file, then import into mySQL.

HTH

easy does it
Subject Author Views Date
Thread Default to current date Bearwithme 5832 Oct 14, 2000, 2:49 PM
Thread Re: Default to current date
Bearwithme 5699 Oct 15, 2000, 6:42 AM
Post Re: Default to current date
Stealth 5716 Oct 16, 2000, 8:25 PM
Thread Re: Default to current date
donm 5660 Oct 28, 2000, 3:34 AM
Thread Re: Default to current date
Bearwithme 5664 Oct 28, 2000, 3:41 AM
Thread Re: Default to current date
santana 5632 Nov 21, 2000, 12:15 AM
Thread Re: Default to current date
Bearwithme 5627 Nov 21, 2000, 3:56 AM
Thread Re: Default to current date
santana 5644 Nov 21, 2000, 6:14 AM
Thread Re: Default to current date
Bearwithme 5613 Nov 21, 2000, 8:19 AM
Post Re: Default to current date
santana 5612 Nov 21, 2000, 9:34 PM