Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$date = $queryfieldarray['mydatefield']; [color green]//get the date from the field in my table[/color]
$dateArray = explode("-",$date); [color green]//explode this value using -[/color]
$year = $dateArray[0]; [color green]// the first exploded value[/color]
$month = $dateArray[1]; [color green]// the second exploded value[/color]
$daytime = $dateArray[2]; [color green]// the third which includes the day as a number and time as hours,minutes and seconds are separated by :[/color]
$datetimeArray= explode(" ",$daytime); [color green]// these are separated by a space so explode that to separate the day from the time[/color]
$day=$datetimeArray[0];
$time=$datetimeArray[1];
echo $day.'/'.$month.'/'.$year.' at '.$time; [color green]//display the UK date style[/color]