[Solved] I want php date formate in yyyy-mm-ddThh:mm:ss:ss.sssz. How to write code for this? [closed]


<?php
    $t = microtime(true);
    $micro = sprintf("%03d",($t - floor($t)) * 1000);
    $utc = gmdate('Y-m-d\TH:i:s.', $t).$micro.'Z';
    echo $utc;
?>

DEMO

3

solved I want php date formate in yyyy-mm-ddThh:mm:ss:ss.sssz. How to write code for this? [closed]