# How to set the dateformat

**URL:** <https://forum.radsystems.io/t/how-to-set-the-dateformat/1787>\
**Category:** PHPRad Classic\
**Created:** [October 22, 2023, 9:46pm UTC](https://forum.radsystems.io/t/how-to-set-the-dateformat/1787 "2023-10-22T21:46:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![LieselotteVS](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@LieselotteVS](https://forum.radsystems.io/u/LieselotteVS)\
**Post date:** [October 22, 2023, 9:46pm UTC](https://forum.radsystems.io/t/how-to-set-the-dateformat/1787/1 "2023-10-22T21:46:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Genlock](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Genlock](https://forum.radsystems.io/u/Genlock)\
**Post date:** [October 28, 2023, 7:31pm UTC](https://forum.radsystems.io/t/how-to-set-the-dateformat/1787/2 "2023-10-28T19:31:00Z")

</div>

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:

1. `'Y-m-d H:i:s'` - Year-month-day hour:minute:second
2. `'d-m-Y H:i:s'` - Day-month-year hour:minute:second
3. `'Y/m/d H:i:s'` - Year/month/day hour:minute:second
4. `'d/m/Y H:i:s'` - Day/month/year hour:minute:second
5. `'Y-m-d'` - Year-month-day
6. `'d-m-Y'` - Day-month-year
7. `'Y/m/d'` - Year/month/day
8. `'d/m/Y'` - Day/month/year
9. `'H:i:s'` - Hour:minute:second

Remember, 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

---

<div class="post-metadata">

**Author:** ![daniele](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@daniele](https://forum.radsystems.io/u/daniele)\
**Post date:** [March 20, 2024, 10:40am UTC](https://forum.radsystems.io/t/how-to-set-the-dateformat/1787/3 "2024-03-20T10:40:21Z")

</div>

Ciao  
ho cambiato la funzione come da te indicato ma la visualizzazione è rimasta uguale in frontoffice.  
cosa posso controllare ?

---

<div class="post-metadata">

**Author:** ![Genlock](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Genlock](https://forum.radsystems.io/u/Genlock)\
**Post date:** [March 22, 2024, 8:23pm UTC](https://forum.radsystems.io/t/how-to-set-the-dateformat/1787/4 "2024-03-22T20:23:49Z")

</div>

Che un screenshot?  
Mi pui copiare il SQL statemant e il Wharestatemant con le parametri del URL.

---

<div class="post-metadata">

**Author:** ![daniele](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@daniele](https://forum.radsystems.io/u/daniele)\
**Post date:** [April 9, 2024, 11:21am UTC](https://forum.radsystems.io/t/how-to-set-the-dateformat/1787/5 "2024-04-09T11:21:59Z")

</div>

come lo recupero per mandarlo ?

---

<div class="post-metadata">

**Author:** ![daniele](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@daniele](https://forum.radsystems.io/u/daniele)\
**Post date:** [April 9, 2024, 11:54am UTC](https://forum.radsystems.io/t/how-to-set-the-dateformat/1787/6 "2024-04-09T11:54:50Z")

</div>

> [@Genlock](#):
>
> Helpers\Funcs

No modificato Functions.php su you\_project\helpers  
ma la data non si aggiorna.

---

<div class="post-metadata">

**Author:** ![Genlock](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Genlock](https://forum.radsystems.io/u/Genlock)\
**Post date:** [April 9, 2024, 5:48pm UTC](https://forum.radsystems.io/t/how-to-set-the-dateformat/1787/7 "2024-04-09T17:48:27Z")

</div>

Alora  
Ofatto un Joyn su una altro Table gosi io o tutte le Parametri.  
Dopo o fattu un where  
E con il link mando il Codice.

 ![grafik](https://forum.radsystems.io/uploads/default/original/2X/1/1f8da81c11914a2c1e849cc4752836c4428a1260.png)  
 ![grafik](https://forum.radsystems.io/uploads/default/original/2X/e/ecaa261b0814bbbf516eb6b9add50a53cb0132ed.png)  
 ![grafik](https://forum.radsystems.io/uploads/default/original/2X/5/5d75193b81946f18beeab1d593c0a1e43b73fceb.png)  
 ![grafik](https://forum.radsystems.io/uploads/default/original/2X/1/160406b4d521aef95fd12956af7a62f5facd34e6.png)  
 ![grafik](https://forum.radsystems.io/uploads/default/original/2X/e/ec5990000a3cf925583ac0f7a8a71f71b0fa024d.png)
