flemingmike Posted March 9, 2011 Share Posted March 9, 2011 hello, im wondering how to properly code the following. $stdate = date( 'Ymd', strtotime($pdate) ); $sttime = date( 'His', strtotime($tstart1) ); $dtStart = ".$stdate.'T'.$sttime.'Z'"; echo "$dtStart"; i would like the echo to read 20110309T050000Z Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 9, 2011 Share Posted March 9, 2011 What's in $pdate & $tstart1? How about <?php $dtStart = date('Ymd\THis\Z',strtotime("$pdate $tstart1")); echo $dtStart; ?> Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.