Re: date pref

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24016
interpreted = N
texte = >>Hi folks, >>I changed my date prefs in a webcat machine to %d/%m/%Y from the default >>%m/%d/%Y >>Now my [date] shows up as 24/02/1999. >> >>When I try something like >>[math date]{[date]}+{03/00/0000}[/math] I get 02/27/1999. >> Should this not return 27/02/1999 instead? >>Is there another pref I need to change? > >I think you should change the Read date format, too.I think so too. I believe the ReadDateFormat tells webcat the proper order in which to 'read' the three parts of a string when that string is formatted as a date. Therefore, I think this pref would have to be changed from mdy to dmy in order to make webcat work properly with your new DateFormat pref.Reminder Warning:There *was* a bug in a set of the webcat admin templates in an earlier version (I don't remember which version), and that bug caused webcat to put UPPERCASE letters -- instead of lowercase letters -- into the ReadDateFormat value. Unfortunately, using uppercase letters has the undesired effect of causing webcat to crash. Therefore, if you're going to change this preference via the admin templates, make sure you're using the most recent admin templates. And if you change it manually, be sure to use lowercase letters ... :)Sincerely, Kenneth Grome WebDNA Consultant Associated Messages, from the most recent to the oldest:

    
  1. Re: date pref (Kenneth Grome 1999)
  2. Re: date pref (Kenneth Grome 1999)
  3. Re: date pref (Mícheál O Sé 1999)
  4. Re: date pref (webcat 1999)
  5. Re: date pref (Kenneth Grome 1999)
  6. Re: date pref (Mícheál O Sé 1999)
  7. Re: date pref (Mícheál O Sé 1999)
  8. Re: date pref (Mícheál O Sé 1999)
  9. Re: date pref (Mícheál O Sé 1999)
  10. Re: date pref (Kenneth Grome 1999)
  11. Re: date pref (Christer Olsson 1999)
  12. date pref (Mícheál O Sé 1999)
  13. RE:math context ignores date prefs? (John Hill 1998)
  14. math context ignores date prefs? (Matthias Precht 1998)
>>Hi folks, >>I changed my date prefs in a webcat machine to %d/%m/%Y from the default >>%m/%d/%Y >>Now my [date] shows up as 24/02/1999. >> >>When I try something like >>[math date]{[date]}+{03/00/0000}[/math] I get 02/27/1999. >> Should this not return 27/02/1999 instead? >>Is there another pref I need to change? > >I think you should change the Read date format, too.I think so too. I believe the ReadDateFormat tells webcat the proper order in which to 'read' the three parts of a string when that string is formatted as a date. Therefore, I think this pref would have to be changed from mdy to dmy in order to make webcat work properly with your new DateFormat pref.Reminder Warning:There *was* a bug in a set of the webcat admin templates in an earlier version (I don't remember which version), and that bug caused webcat to put UPPERCASE letters -- instead of lowercase letters -- into the ReadDateFormat value. Unfortunately, using uppercase letters has the undesired effect of causing webcat to crash. Therefore, if you're going to change this preference via the admin templates, make sure you're using the most recent admin templates. And if you change it manually, be sure to use lowercase letters ... :)Sincerely, Kenneth Grome WebDNA Consultant Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Showif, Hideif reverse logic ? (1997) can WC render sites out? (1997) How true is this? (1999) Merging databases (1997) Big Databases (1997) show all problem (1997) Logging purchases (1997) Wireless (2002) [showif]/[hideif] question (1997) WCS Newbie question (1997) problems with 2 tags (1997) PIXO support (1997) [OT] Patent Attorney (2002) emailer (1997) Date question (2003) Generating Report Totals (1997) WebDNA maxing out processor (2008) Re:2.1 pricing? (1998) Setting up shop (1997) Running _every_ page through WebCat ? (1997)