utdfederation Posted April 6, 2012 Share Posted April 6, 2012 hi all, i have a script that im trying to add the @ sign after the date. code: <td align='left' class='forumheader3' nowrap>".(($wardate == -1) ? "" : date($conf['formatdetails'], $wardate))."</td> resulting in this: 1 Apr 2012 21:30 but i am trying to get the @ after the date so the result would be this: 1 Apr 2012 @ 21:30 any help please Quote Link to comment https://forums.phpfreaks.com/topic/260483-date-and-time-quiery/ Share on other sites More sharing options...
samshel Posted April 6, 2012 Share Posted April 6, 2012 looks like your date format is coming from config. You can change the date format in your config and insert \@ between date and time. $conf['formatdetails'] = 'd M Y H:i'; to $conf['formatdetails'] = 'd M Y \@ H:i'; Edit: This will change the date format whereever the config date format is used, so if you dont want to do that, you can specify this format for this code only: <td align='left' class='forumheader3' nowrap>".(($wardate == -1) ? "" : date('d M Y \@ H:i', $wardate))."</td> Quote Link to comment https://forums.phpfreaks.com/topic/260483-date-and-time-quiery/#findComment-1335105 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.