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 ForumsForm and ListForm and ListDate formattingDate formatting
Previous
 
Next
New Post
11/7/2008 11:09 AM
 
Hi, I have a date column which I can format using output format, however, I have a requirement to display this date in some other date format while keeping the output format unchanged, what's the best way to do this? I tried to add a calculated column, set the expression to my date column and setup its output format, but it didn't work. Thanks
 
New Post
11/7/2008 4:27 PM
 

Did you set the system data type of the calculated column also to Date and Time? It works for me.

 
New Post
11/7/2008 9:32 PM
 
Yes, here's the setup: PublishDate: A Date type column with output format "MMM d, yyyy" PublishDate2: A calculated column with data type "Date and Time", output format "MMddyyyy" and Expression is "PublishDate" In xslt I used to display it and got "2008-09-01T00:00:00+08:00"
 
New Post
11/7/2008 11:19 PM
 

 Repost to correct format problem:

 

Yes, here's the setup:

PublishDate: A Date type column with output format "MMM d, yyyy"

PublishDate2: A calculated column with data type "Date and Time", output format "MMddyyyy" and Expression is "PublishDate

In xslt I used xsl:value-of select="udt:PublishDate2" disable-output-escaping="yes" to display it and got "2008-09-01T00:00:00+08:00"

 
New Post
11/8/2008 6:08 AM
 

The format for Calculated Colum only works in DataGrid, not in XSL, sorry. 

I used to parse the date as string inside xsl, similar to this approach: http://geekswithblogs.net/workdog/archive/2007/02/08/105858.aspx 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListDate formattingDate formatting


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