⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. Very soon this forum will be read-only and archived. ⚠


Timti

Member Since 02 Dec 2019
Offline Last Active Jan 02 2020 07:35 AM
-----

Topics I've Started

Change date format in relation_n_n Name String

02 December 2019 - 03:13 PM

Is it possible to change the format of {Geburtstag}?

$crud->set_relation_n_n(
'Zusatzpersonen', 
'Relation_Mietvertraege_Personen', 
'Personen', 
'Mietvertraege_ID', 
'Personen_ID', 
'{Obj_Nr} ({Name} {Geburtstag})', 
'priority');

Maybe with PHP:

date_format($date,"Y/m/d H:i:s");

 Or with SQL:

FORMAT (getdate(), 'dd-MM-yy') as date

Thanks 4 your help