Created
December 17, 2024 09:08
-
-
Save shohag-cse-knu/152f66af4020886208eb5e57c9f93c86 to your computer and use it in GitHub Desktop.
Get date from datepicker in PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo implode('-', array_reverse(explode('/', $this->input->post('date')))); | |
/* Result: | |
2024-12-12 | |
*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment