Jump to content

date and time quiery


utdfederation

Recommended Posts

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.