Helpful Information
 
 
Category: MySQL and other databases
date

At this moment I have a field with the type DATE using by default 0000-00-00. I want modify to correspond to the next example: 2006-06-06 15:30 PM. Can I register in the same field or I want to separate by other fields??

No, PHP has a DATETIME data type, which can store both date and time in the format YYYY-MM-DD HH/MM/SS.










privacy (GDPR)