Re: Date and Time

2012-01-08 Thread Govinda
> > leave it stored as a timestamp type or datetime type, and when you need to > display it otherwise.. then covert with date() oops, Paul's post reminded me I was suggesting a PHP function here ^^^ ... and this is the MySQL list. > -G -- MySQL General Mailing List For list archives: http:/

Re: Date and Time

2012-01-08 Thread Paul DuBois
On Jan 8, 2012, at 2:21 PM, Donovan Brooke wrote: > Hello, I'm doing an insert into with date and time type fields. > > I was reading: > http://dev.mysql.com/doc/refman/5.1/en/date-and-time-literals.html > > My question is: is the format always 'year month day&#x

Re: Date and Time

2012-01-08 Thread Govinda
> What's your problem/reason with how it is? I assume Andy means: leave it stored as a timestamp type or datetime type, and when you need to display it otherwise.. then covert with date() -G -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http:/

Re: Date and Time

2012-01-08 Thread Donovan Brooke
Peter Brawley wrote: On 1/8/2012 2:21 PM, Donovan Brooke wrote: Hello, I'm doing an insert into with date and time type fields. I was reading: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-literals.html My question is: is the format always 'year month day'?.. or can w

Re: Date and Time

2012-01-08 Thread Peter Brawley
On 1/8/2012 2:21 PM, Donovan Brooke wrote: Hello, I'm doing an insert into with date and time type fields. I was reading: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-literals.html My question is: is the format always 'year month day'?.. or can we save dates in 

Re: Date and Time

2012-01-08 Thread Andrew Moore
What's your problem/reason with how it is? Andy On Sun, Jan 8, 2012 at 8:21 PM, Donovan Brooke wrote: > Hello, I'm doing an insert into with date and time type fields. > > I was reading: > http://dev.mysql.com/doc/**refman/5.1/en/date-and-time-**literals.html<http:/

Date and Time

2012-01-08 Thread Donovan Brooke
Hello, I'm doing an insert into with date and time type fields. I was reading: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-literals.html My question is: is the format always 'year month day'?.. or can we save dates in 'month day year' as well? Thanks, Donova

RE: Default Date and Time

2009-06-26 Thread Jerry Schwartz
>-Original Message- >From: Jason Todd Slack-Moehrle [mailto:mailingli...@mailnewsrss.com] >Sent: Friday, June 26, 2009 1:10 PM >To: mysql@lists.mysql.com >Subject: Default Date and Time > >Hi All, > >I want to create a table that defaults to current_date and c

Re: Default Date and Time

2009-06-26 Thread Max Bube
Hi Jason The DEFAULT value can't be an expression. 2009/6/26 Jason Todd Slack-Moehrle > Hi All, > > I want to create a table that defaults to current_date and current_time. > > I have: > > CREATE TABLE `personalevent`( >`pevent` mediumint(10) NOT NULL, >`eventid` mediumint(10)

Default Date and Time

2009-06-26 Thread Jason Todd Slack-Moehrle
Hi All, I want to create a table that defaults to current_date and current_time. I have: CREATE TABLE `personalevent`( `pevent` mediumint(10) NOT NULL, `eventid` mediumint(10) NOT NULL, `userid` mediumint(10) NOT NULL, `username` varchar(10) NOT NULL, `pa

Re: How to handle date and time conversions

2005-05-08 Thread Rhino
I'm not sure what you mean by date *conversions* but the date *functions* can be found here: http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html. You will probably use these for most conversions you attempt. Rhino - Original Message - From: "Robert A. Rawlinso

How to handle date and time conversions

2005-05-08 Thread Robert A. Rawlinson
I have read somewhere how to do the conversions but for some reason I can not find it again. Now I need to do conversions soon. Could someone direct me to where the documentation is located? Thanks for any help you can offer. Bob Rawlinson -- Robert A. Rawlinson Felicity Ohio 45120 -- MySQL Gen

Re: date and time functions.

2004-07-04 Thread Eric Bergen
Date modification functions are listed in the manual here: http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.html If you are just trying to add a year to a column try something like this. update table set col = col + interval 1 year; -Eric On Sun, 4 Jul 2004 18:22:04 +1000, Hari Yell

date and time functions.

2004-07-04 Thread Hari Yellina
Hi All, I trying to add one year to date function is there a good documentation on how we can manipulate on date function. Changing the format of dates for mysql. Thank you , Harry -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lis

RE: Migrating Access Tables -- Empty Columns, Date and Time

2004-06-29 Thread Victor Pendleton
Subject: Migrating Access Tables -- Empty Columns, Date and Time I'm migrating a Microsoft Access 2002 (Service Pack 3) table constructed by my wife to a corresponding table in MySQL 4.0.20. Some columns in most of the 3000+ rows are empty. Some of these are contiguous empty columns. I don'

RE: Migrating Access Tables -- Empty Columns, Date and Time

2004-06-29 Thread Osvaldo Sommer
ne 28, 2004 8:21 PM To: [EMAIL PROTECTED] Subject: Migrating Access Tables -- Empty Columns, Date and Time I'm migrating a Microsoft Access 2002 (Service Pack 3) table constructed by my wife to a corresponding table in MySQL 4.0.20. Some columns in most of the 3000+ rows are empty. Some of

Re: Migrating Access Tables -- Empty Columns, Date and Time

2004-06-29 Thread Wesley Furgiuele
etimes several) are seen, what does mysqlimport/LOAD DATA do to the corresponding column entrie(s)? Will it set them to NULL? Or to the default specified in the CREATE TABLE statement? Should I explicitly set these to NULL where permitted by the column type? Last of all, look at this date and time s

Migrating Access Tables -- Empty Columns, Date and Time

2004-06-28 Thread Robert L Cochran
o to the corresponding column entrie(s)? Will it set them to NULL? Or to the default specified in the CREATE TABLE statement? Should I explicitly set these to NULL where permitted by the column type? Last of all, look at this date and time stamp exported by Access: ,2/12/1998 0:00:00, Will mysql

Re: How can i make mysql to print date and time automatically?

2003-10-03 Thread Director General: NEFACOMP
l: NEFACOMP" <[EMAIL PROTECTED]> To: "Emilio Ruben Estevez" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2003 22:16 Subject: Re: How can i make mysql to print date and time automatically? > INSERT INTO your_table (field1, field2, field3) VAL

Re: How can i make mysql to print date and time automatically?

2003-10-03 Thread Director General: NEFACOMP
ober 01, 2003 17:09 Subject: How can i make mysql to print date and time automatically? > Hi, im develping an application, and was wondering how can i make mysql get > time and date from pc and print it automatically in the time field and date > field so the user dont have to worry about

Re: How can i make mysql to print date and time automatically?

2003-10-01 Thread woody at nfri dot com
On Wed, 2003-10-01 at 10:09, Emilio Ruben Estevez wrote: > Hi, im develping an application, and was wondering how can i make mysql get > time and date from pc and print it automatically in the time field and date > field so the user dont have to worry about entering the coorect time and > date.

How can i make mysql to print date and time automatically?

2003-10-01 Thread Emilio Ruben Estevez
Hi, im develping an application, and was wondering how can i make mysql get time and date from pc and print it automatically in the time field and date field so the user dont have to worry about entering the coorect time and date. Is this posible, ive created a databse with fields hour(time) and

Re: date and time

2003-07-08 Thread William R. Mussatto
> Hi, > > can someone explain me the avantage of using date and time, and also can > i set time + XX minutes?? > > Thanx > Anthony Short answer is: You can use the date and time functions and formats. There is one or just use '+' or '-' See chapter 6 in th

date and time

2003-07-08 Thread awarsd
Hi, can someone explain me the avantage of using date and time, and also can i set time + XX minutes?? Thanx Anthony