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. Quote Link to comment 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. 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.