Hi All,
I ran the following commands:
DROP TABLE IF EXISTS test_date;
CREATE TABLE test_date (test_date datetime);
INSERT INTO test_date (test_date) VALUES ('2002-02-31');
SELECT * FROM test_date;
I got the following results:
mysql> DROP TABLE IF EXISTS test_date;
Query OK, 0 rows affected (0.02 sec)
mysql> CREATE TABLE test_date (test_date datetime);
Query OK, 0 rows affected (0.03 sec)
mysql> INSERT INTO test_date (test_date) VALUES ('2002-02-31');
Query OK, 1 row affected (0.01 sec)
mysql> SELECT * FROM test_date;
+---------------------+
| test_date |
+---------------------+
| 2002-02-31 00:00:00 |
+---------------------+
1 row in set (0.00 sec)
mysql>
Am I mistaken or does 2002-02-31 translate into February 31, 2002? If it does ...
I am running MySQL 3.23.41 on Windows 2000.
John
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php