Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: News Manager & Job Manager:
Custom format of date in NM

 

 


compubase
User

May 4, 2004, 2:48 PM

Post #1 of 3 (5715 views)
Shortcut
Custom format of date in NM Can't Post

Hi,

We are implementing 5 of your products at a customer site. To my surprise the News publish date is not customizable (format to Dutch standards) and the customer will not accept this.

Could you please provide me with a solution?

Thanks


Donna
Staff / Moderator


May 4, 2004, 4:18 PM

Post #2 of 3 (5711 views)
Shortcut
Re: [compubase] Custom format of date in NM [In reply to] Can't Post

Hi compubase,

Thanks for your post. :)

No, the date in News Manager isn't customizable. However, Article Manager's date field is -- you may want to take a look at Article Manager instead. :) Article Manager is much more fully featured than News Manager, it includes a search engine, categories & sub-categories, a syndication tool, headline lists and much, much more.

Let me know if you have any other questions or concerns.

Donna

--
support@interactivetools.com


compubase
User

May 5, 2004, 2:16 AM

Post #3 of 3 (5698 views)
Shortcut
Javascript solution for this problem [In reply to] Can't Post

Donna,

Thanks for your suggestion, however NM is just fine.

I found the solution in adding some javascript in the template that does the formatting:

<!-- Nieuws Begin -->
<script>
function format_date(pDate) {
var lMonthArray = new Array()
var lDateObject = new Date(pDate);
var lRetval = "";

lMonthArray[0] = "januari";
lMonthArray[1] = "februari";
lMonthArray[2] = "maart";
lMonthArray[3] = "april";
lMonthArray[4] = "mei";
lMonthArray[5] = "juni";
lMonthArray[6] = "juli";
lMonthArray[7] = "augustus";
lMonthArray[8] = "september";
lMonthArray[9] = "oktober";
lMonthArray[10] = "november";
lMonthArray[11] = "december";
lRetval = lDateObject.getDate() + " " + (lMonthArray[lDateObject.getMonth()]) + " " + lDateObject.getFullYear();
return lRetval;
}
</script>
<!-- template insert : $list$ -->
<!-- templatecell : row -->


<table border=0 cellspacing=0 cellpadding=0 width=460>
<r>
<td> <a href="$url$"><b>$name$</b></a> -
<script>
document.write(format_date('$date$'));
</script>
<br>
</td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=0 width=460>
<tr>
<td>$summary$<br>
</td>
</tr>
</table>
<!-- /templatecell : row -->
<!-- templatecell : notfound -->
<table border=0 cellspacing=0 cellpadding=0 width=460>
<tr>
<td>Op dit moment geen nieuws artikelen. Kom graag een keer terug!<br>
</td>
</tr>
</table>
<!-- /templatecell : notfound -->
<!-- Nieuws Einde -->


Joep