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 Link to comment https://forums.phpfreaks.com/topic/230068-multiple-variables-in-string/ 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 Link to comment https://forums.phpfreaks.com/topic/230068-multiple-variables-in-string/#findComment-1184908 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.