Developer forum

Forum » Templates » Day for news

Reply
I've looked and not found anything but a numeric representation of the weekday - what I need is a textual representation (Monday, Tuesday, etc) - I assume these names will follow the language set overall (since this particular case requires danish names).



Is there any way to circumvent this restriction (short of using javascript or some other "hack") ?

Replies

 
Nicolai Høeg Pedersen
Reply

There is no easy way...


 


I guess you found this one:


http://template.dynamicweb.dk/Default.aspx?ID=3592


 


It applies to NewsDate tag.


 


So if you set the international settings on the news settings:


http://manual.net.dynamicweb.dk/Default.aspx?ID=4426


or on the area/frontpage module to Danish the date will be available in alle those formats.


 


The .LongDate extension then has the day name inside. Parsing it with javascript is one way of getting it.


 


Another way is to use a Javascript and just use the Date tag.


 


Know its not pretty.

 
Reply
NP wrote:


There is no easy way...




 




I guess you found this one:




http://template.dynamicweb.dk/Default.aspx?ID=3592




 




It applies to NewsDate tag.




 




So if you set the international settings on the news settings:




http://manual.net.dynamicweb.dk/Default.aspx?ID=4426




or on the area/frontpage module to Danish the date will be available in alle those formats.




 




The .LongDate extension then has the day name inside. Parsing it with javascript is one way of getting it.




 




Another way is to use a Javascript and just use the Date tag.




 




Know its not pretty.


Actually, LongDate doesn't return the day-name either - only WeekDay returns a numeric representation. I guess I'll have to hack it in - thanks for the reply ;)
 
Nicolai Høeg Pedersen
Reply

Hi


 


I'll add long and short day and month names to the template date parser. Coming up within a month... Probably with august release.

 

You must be logged in to post in the forum