Search the blog

To create an ISO8601 encoded date time in PHP use Y-m-d\TH:i:s\Z as the date format.

// Generates 2020-05-12T13:52:31Z
date('Y-m-d\TH:i:s\Z', strtotime('2020-05-12 13:52:31'))
Tim Bennett is a web designer and developer. He has a First Class Honours degree in Computing from Leeds Metropolitan University and currently runs his own one-man web design company, Texelate.