Hi,
I’m new to RadSystems. I created a new project with PHP & bootstrap.
How can I change the dateformat on my project?
I want it to be shown as DD/MM/YYYY.
Kind regards
Lieselotte
Hi,
I’m new to RadSystems. I created a new project with PHP & bootstrap.
How can I change the dateformat on my project?
I want it to be shown as DD/MM/YYYY.
Kind regards
Lieselotte
Hello!
It looks like you’re discussing a PHP function called format_date
in a file located at C:\__\www\you_project\app\Helpers\Funcs.php
on line 346. The function is used to format dates, and the default format is 'Y-m-d H:i:s'
, which represents the format like 2023-10-28 21:33:33
.
If you need a list of datetime formats in PHP, here are some common ones:
'Y-m-d H:i:s'
- Year-month-day hour:minute:second'd-m-Y H:i:s'
- Day-month-year hour:minute:second'Y/m/d H:i:s'
- Year/month/day hour:minute:second'd/m/Y H:i:s'
- Day/month/year hour:minute:second'Y-m-d'
- Year-month-day'd-m-Y'
- Day-month-year'Y/m/d'
- Year/month/day'd/m/Y'
- Day/month/year'H:i:s'
- Hour:minute:secondRemember, you can use these formats with the date
function in PHP to format dates according to your needs. If you have any specific questions or need further assistance, feel free to ask!
$today = date(“F j, Y, g:i a”); // March 10, 2001, 5:16 pm
$today = date(“m.d.y”); // 03.10.01
$today = date(“j, n, Y”); // 10, 3, 2001
$today = date(“Ymd”); // 20010310
$today = date(‘h-i-s, j-m-y, it is w Day’); // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
$today = date(‘\i\t \i\s \t\h\e jS \d\a\y.’); // it is the 10th day.
$today = date(“D M j G:i:s T Y”); // Sat Mar 10 17:16:18 MST 2001
$today = date(‘H:m:s \m \i\s\ \m\o\n\t\h’); // 17:03:18 m is month
$today = date(“H:i:s”); // 17:16:18
$today = date(“Y-m-d H:i:s”); // 2001-03-10 17:16:18 (the MySQL DATETIME