Re: Date-format
| From: | Jacob Miller | Date: | Thu, 12 Sep 2002 07:58:58 +0000 |
| Subject: | Re: Date-format | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116106@lists.php.net to get a copy of this message | ||
It looks to me like the database is interpreting your date incorrectly. Try changing the format you use to insert, yyyy-mm-dd
- jacob
At 15:11 09/12/2002, Tommi Virtanen wrote:
Hi! I have web-form, which has field (10 chars), there I enter date (format dd.mm.yyyy). Then data saves to database (date-field type is date). So everything works, but not fine. When I enter date in format ex. 31.12.2002 and save form, then I'll check what are in db (there are 2031-12-20). Is there any chance to correct this problem. I have (in clause which insert to db): GetSQLValueString($HTTP_POST_VARS['date'], "date") gustavus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php