in reply to Bottling time

For storing the dates in a database, I would use 'datetime' columns, which can be set using the databases own now() function.
Using datetime column types will allow you to do datetime calculations within your 'where' query.
Also note the funky 'timestamp' column which will update the recorded datetime automatically whenever it's changed or read.

read more in the mysql.com documentation.

Replies are listed 'Best First'.
Re: Re: Bottling time
by elwarren (Priest) on Jul 31, 2002 at 19:29 UTC
    In Oracle the datatype is just DATE, and you need to select SYSDATE instead of now(). Precision is down to the second, anything more than that and you should start storing numbers. You'll probably use the TO_DATE() and TO_CHAR() functions to manipulate them...

    I'd store the date and have another column that maps the user's local timezone setting so that you can convert the time for display.