Level 60
Use DATETIME format for your column in your database.
And for PHP check documentation https://www.php.net/manual/en/datetime.format.php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I started to build a booking system just for the purpose of learning and all of the tutorials that I found online only shows you how to make one using only dates booking using date only there is no time like I want to book for an appointment at Sunday 9 pm not just Sunday how can I do that, and thanks
Please or to participate in this conversation.