[Typo3] US Date

Amy Stinson tzaia at stinsonfamily.com
Wed Mar 30 15:33:42 CEST 2005


On 29 Mar 2005 at 13:16, Claus Bruun wrote:

> Its indeed hardcoded, as Daniel said.
> 
> You can change it by altering the file "jsfunc.evalfield.js" found in
> the t3lib folder.
> 
> For "date", approx. line 418:
> theString = 
> theTime.getDate()+'-'+(theTime.getMonth()+1)+'-'+this.getYear(theTime)
> ;
> 
> Change to:
> theString = 
> (theTime.getMonth()+1)+'/'+theTime.getDate()+'/'+this.getYear(theTime)
> ;
> 
> Result: the format mm/dd/yyyy
> 
> Will also work for "datetime"

Thank you for the location of this.  Someone mentioned it could be changed in that 
file, however they didn't give an approximate line nor the syntax for the change, 
which for those of us who aren't programmers, just didn't help.

I do have a question.  Is there some reason why the "global" option really isn't?

Amy

Amy Stinson
Amy's Answers, LLC
email:  astinson at amys-answers.com
web:  http://www.amys-answers.com
phone:  317.885-1741





More information about the TYPO3-english mailing list