You are here: Re: Date formatting issue « All PHP « IT news, forums, messages
Re: Date formatting issue

Posted by J.O. Aho on 08/08/06 03:47

Chris wrote:
> I am also having an issue with dates - I have a js calendar pop-up for
> selecting the date to insert into a text box. It is formatted to show the
> date as mm/dd/yyyy.

I would avoid this, as the date will be based on the users miss configured
computer, send the form input as empty value and populate the date in the php
script.

> However, the dates in the mySQL db show as yyyy-mm-dd,
> and I have noted that when I try to input a new date into the database via
> the form, all the db shows is 0000-00-00.

It's always a good idea to input the data in the same way as it's displayed.


//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация