English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

for example always displays 0000-00-00.... but I want to format 00/00/0000 example 12/04/2007

2007-01-02 14:53:53 · 1 answers · asked by edwinbiasbas 1 in Computers & Internet Programming & Design

1 answers

Store the date in a varchar instead of DATE field specific to MYSQL. You have greater leeway. Then use the date() function in PHP to format the date the way you want to insert it into your db.

I prefer to break the date into 3 seperate parts. yyyy, mm, and dd because it provides for a little more functionality.

2007-01-02 15:03:27 · answer #1 · answered by AtOneWithNature 3 · 0 0

fedest.com, questions and answers