Jump to content


Change date format in relation_n_n Name String

relation_n_n callback format date php sql

  • Please log in to reply
No replies to this topic

#1 Timti

Timti

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 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







Also tagged with one or more of these keywords: relation_n_n, callback, format, date, php, sql

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users