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:

Where is f2? (1997) case sensitivity in lookups (1997) Anyone have an invoicing system? (1999) Problems passing [SKU] with $Replace in 2.0 (1997) Has anyone built this already? (2003) WebCat and image maps (1997) RAM variables (1997) E-mailer error codes (1997) Include a big block of text (1997) Variable Sizes, Widths and Colors (2000) Location of Browser Info.txt file (1997) [WebDNA] Daily tasks without triggers (2011) date (1999) # of real domains on 1 web server (1997) Add htmlarea 3 to SiteBuilder (2004) Thanks ! (1997) WebCat with WebTen (1998) WebCatalog2 Feature Feedback (1996) [BULK] [WebDNA] [BULK] looking for the holy grail of hosting (2013) [referrer] tag (1997)