rejetto forum

Please Help..

Guest · 6 · 9324

0 Members and 1 Guest are viewing this topic.

RockS

  • Guest
Hello,

i want to show only item date.. not TIME & DATE...

Date : 10/2/2007 1:45:27 AM  hot this ... show only date

EXAMPLE :

Date : 10/2/2007 . Like This.....

------------

anybody help how to add this any code ?

SORRY FOR MY POOR ENGLISH  :D


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
you can use a small java-script like this:

function dateonly(thedate)
   {
   document.write(thedate.substr(0,10));
   }   

then change in the sections file and folder:
%item-modified%
to:
<script language="javascript">dateonly('%item-modified%')</script>

example lines in file section:
from : <td class="row right">%item-modified%</td>
to : <td class="row right"><script language="javascript">dateonly('%item-modified%')</script></td>
your computer has no brain - use your own !


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile


Just put %date% anywhere in your template where you want it to appear.  You don't need all of that javascript shown above.
maverick


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
sorry maverick (i sent you a private message) but %date% is current date, not related to the items.

if you are using the last beta version you can use {{substring|| |%item-modified%}}


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile

My mistake.  I must have mis-read.  I assumed he was talking about current date.
maverick


RockS

  • Guest
waooooooooooooooooooo !!!  :D rejetto u r real ADMINISTRATOR  ;) u r genius ..... thxxxxxxxxxx

{{substring|| |%item-modified%}} its working.... thanks u very much