Created By
DMG Development
As Seen On

Main Page  |  Forums  |  Register  |  Active Topics  |  Members  |  Search

 
Username:
Password:
DMG Forums >> DMG Forums Discussion >> General Discussion >> Date Format Issue
Date Format Issue
Author Topic
Omegaman


Beginner


Join Date: 7/17/2006
Posts: 14
Location: UK

Posted: 10/29/2006 3:17:24 PM

The date posted against each topic is displaying in the correct format dd/mm/yyyy but the date displayed against the topic when show in the featured topics area of the forum is being displayed mm/dd/yyyy.

How can I change the format of the date when displayed in the featured topics?

____________________________________
Better to burnout that fade away...
grimmeissen


Administrator


Join Date: 8/30/2005
Posts: 656
Location: Cincinnati, Ohio

Posted: 10/29/2006 7:52:00 PM

Currently there is a function in the DMGForums.Global.Functions class called FormatDate() that handles the formatting in the featured topics. This function should probably be written to handle global date formats, but currently it looks like this.

-------------

Public Shared Function FormatDate(ByVal TheDate as DateTime, Optional Format as Integer = 1) as String
if Format = 1 then
Return TheDate.ToString("MMMM d, yyyy")
else
Return TheDate.ToString("M/d/yyyy")
end if
End Function

-------------

You could probably override this function in some way to meet your immediate needs.


  Copyright DMG Development DMG Forums 3.2