phpbeginner Posted March 10, 2010 Share Posted March 10, 2010 Having trouble formatting date and time with this as there are 2 different statements...... if($res['Retailerspecialtype'] == 1) { $expires = $res['Expires']; } if($res['Retailerspecialtype'] == 2) { $expires = CURRENT_DATE.' '.$res['Retailercycleendtime']; } and then; Expires: '.$expires.' I tried using $expires = date("F j, Y, g:i a"); but the output is the actual date rather than '.$res['Retailercycleendtime']; Any help would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/194813-convert-date-time-issue/ Share on other sites More sharing options...
phpbeginner Posted March 10, 2010 Author Share Posted March 10, 2010 sorry the ouput is actual time, date is working fine. Link to comment https://forums.phpfreaks.com/topic/194813-convert-date-time-issue/#findComment-1024383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.