Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsDisplaying different date/time formatDisplaying different date/time format
Previous
 
Next
New Post
5/29/2008 7:56 AM
 

I'm using the news module to display my news items at my homepage. My problem is the datetime format. It is displayed as: Fri, 16 May 2008 07:26:43 GMT. I only want to display the date, no time at all. I've found the xsl stylesheet with the following line: <xsl:value-of select="pubDate"/>. How can I change the format? I'm using the orizonti nukenews module. Do I have to format the date/time in this module?

 
New Post
5/29/2008 9:55 AM
 

The format of the pubDate is dependent on the newsfeed source.  However, you can use XSL to take a substring of it, if the module you are using allows custom XSL transformation to be used.  I don't anything about the Orizonti NukeNews module, other than the developer has a good reputation for answering questions about his module.  Best bet is to check with the developer.

Now, if you can use a custom XSL stylesheet, the code is not that difficult, but you will need to make some assumptions after reviewing the source newsfeed.  For example, what is the actual data being generated by your newsfeed source?  Once you determine the format, you can use XSL to code for the format of choice, assuming that the newsfeed source will not change it's pubDate data format, or at least test for it, and revert to a fallback of just showing it, if your test fails.

Google for keywords "RSS" "pubDate" "formating", and you'll come up with many suggestions and coding examples of how others are doing this type of task.  Here's one that is pretty comprehensive with examples you can probably tweak to your situation.

http://geekswithblogs.net/workdog/archive/2007/02/08/105858.aspx

Cheers

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsDisplaying different date/time formatDisplaying different date/time format


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out