| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Christian Mack | Date: | September 14 1999 6:45pm |
| Subject: | Re: Saving dates as YYYYMMDD | ||
| View as plain text | |||
"Claudia M. Castaneda" wrote: > > Is it possible to have the DB save the date as YYYYMMDD and the time as > HHMMSS using the date and time types respectively and not return a > formated string, i.e "YYYY-MM-DD" or "HH-MM-SS" ? > > --- > Claudia M. Castaneda Hi Claudia Thats easy :) CREATE TABLE time_table (date_field DATE, time_field TIME, datetime_field DATETIME); INSERT INTO time_table VALUES( NOW(), NOW(), NOW() ); SELECT date_field + 0, time_field + 0, datetime_field + 0 FROM time_table; Tschau Christian
| Thread | ||
|---|---|---|
| • Saving dates as YYYYMMDD | Claudia M. Castaneda | 14 Sep |
| • Re: Saving dates as YYYYMMDD | Mike Machado | 14 Sep |
| • Re: Saving dates as YYYYMMDD | Martin Ramsch | 14 Sep |
| • Re: Saving dates as YYYYMMDD | Christian Mack | 14 Sep |
| • Re: Saving dates as YYYYMMDD | Daniel E. White | 15 Sep |
| • Re: Saving dates as YYYYMMDD | Michael Widenius | 17 Sep |
| • Re: Saving dates as YYYYMMDD | Christian Mack | 15 Sep |
| • Re: Saving dates as YYYYMMDD | Martin Ramsch | 16 Sep |
| • Re: Saving dates as YYYYMMDD | Michael Widenius | 17 Sep |
