Hi dion,
Where are you trying to do this? You can only use the { } syntax in the email template.
Bob
it should be like this:
echo date('d-m-Y',strtotime($row->recordtime));
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
it works..!! 😀
THANK YOU
Hi bullfn33,
Please check the PHP manual for the correct settings to use with PHP functions: date('YY-MM-DD - HH:MM:II') returns 20112011-JunJun-WedWed - 1414:JunJun:11 which probably isn't what you intended.
Also notice that strtotime() will interpret a date as being in US 'month day year' format if that makes sense so 11-06-22 will be interpreted as 6 Nov 2022
Bob