Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (12 votes)

91% thumbs up 8% thumbs down

How would you rate this answer?



Thank you for rating this answer.

How do I change the format of the date?

In Interspire Website Publisher we have a single function that controls the display of the date, thus making it easier to change.

In order to change it, you will need to open /admin/includes/class.helper.php in a text editor (such as notepad, not MS Word) and then locate the following few lines of code:
  
function ShortDate($TheDate)
{
    // Defaults to american date format
    return date("m/j/Y", $TheDate);
}


The section that controls the format of the date is: "m/j/Y"
So we can change this to any format we like; here are some common ones:
Note: The letters are case sensistive. e.g. Y will produce 2006 while y will output 06.

For DD/MM/YY change it to "j/m/y"

For DD/MM/YYYY change it to "j/m/Y"

For YY/MM/DD change it to "y/j/m"

For a list of what other characters can be used, visit http://www.php.net/date

If you have any trouble with this modification, send in a trouble ticket from your client area and we will help you out.


Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software