Thursday, March 11, 2010
Support
Bring2mind Forums
Minimize
Subject: Date format on Shortlist
Prev Next
You are not authorized to post a reply.

Author Messages
Simon Goodchild
Posts:8

05/30/2008 15:51:00 Alert 

Having installed the en-GB language pack and enabled it, the date format in the shortlist module is still M/D/Y - can you please let me know how to change the format to match the portal format (ie. UK date format, DD/MM/YYYY)

Thanks,
Simon

Peter Donker

Posts:2617

05/30/2008 19:07:07 Alert 

As you can see in the ascx file, the format is taken from the current context:



<%# CType(DataBinder.Eval(Container, "DataItem.LastModified"), Date).ToString("d") %>

the ToString("d") means show in short date format according to current thread culture. It is DNN that manages this by setting the thread to your preferred locale or whatever you select in the language selector.

Peter

Simon Goodchild
Posts:8

06/02/2008 11:00:21 Alert 

Thanks Peter - I shifted servers an tried putting on the GB pack and removing the US pack and it worked! Thanks for your reply.

The shortlist module is great, but one that clients may well want to customise in terms of columns showing, even the order of them.

I see the datagrid in the .ascx file but may want to change something in the code behind - is the source code available for this module?

Thanks, Simon

Peter Donker

Posts:2617

06/02/2008 17:36:59 Alert 
Hi Simon,

I'll make the source of Shortlist available shortly. I want to get DMX 04.03.00 out first (I hope before July) and then get some of this stuff up. If you can't wait, drop me an email and I'll zip what I have here.

Peter
You are not authorized to post a reply.



ActiveForums 3.6
  
BugNet
Minimize

This thread is not linked to a bug in the Bring2mind Bug tracker. It does not mean that nothing will be done about its contents, just that it has not been linked to anything.
  
Privacy Statement  |  Terms Of Use
Copyright 2004-2009 Bring2mind