Hi, thanks for the reply. I am having difficulty working out what this line of code is doing so am unsure of the correct syntax to use in the line you recommended.
If I just add the date format string as below it returns all dates of 01/01/1970 (which is wrong). When I try and change the syntax I mostly get a 'Non well formed numeric value encountered' message.
echo "WAJA[".$n."][".$m."] = "."'".WA_DD_Replace(date('dS F Y', $row_child["surgery_date"]))."'".";\n";