Re: [WebDNA] Dates
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103765
interpreted = N
texte = Frank Nordberg wrote:> Does anybody know how to get WebDNA to do [MATH] calculations with > international date formatting (dd/mm/yyyy)?> I managed to figure it out with the old version of WebDNA but after I > upgraded, it's all a mess again, no matter how I set the webDNA > preferences.Set your "Date Display Format" pref to %d/%m/%Y.Set your "Read Date Format" to Day/Month/YearThen do some math:2 days from now: [math date]{[date]}+{02/00/0000}[/math](just tested on a local OSX Enterprise WebDNA 6.2 to verify that it works)> ---> > Oh, and btw, have anybody else also noted that the "Math to use Date > Display Format" pref does exactly the opposite of what it's supposed to? > On my server at least, the [MATH date] tag uses the display format when > it's set to "no" but not when it's set to "yes"Yep. :-/ This is a bug in the admin templates. Thanks for bringit to light to the list. Until we release a newversion, you can edit the file /WebCatalogEngine/admin/AdminPrefs.dnalines 189 and 190.. just switch the "yes" and "no" at the end of thoselines.Donovan> Frank Nordberg> http://www.musicaviva.com> http://stores.ebay.com/Nordbergs-Music-Store?refid=storeP.S. Frank, it's always helpful to include environment details whenposting issues. Sometimes problems can be specific to a platform, Edition, and/or WebDNA version number.-- Donovan BrookeWebDNA Software Corporationhttp://www.webdna.us**[Square Bracket Utopia]**
Associated Messages, from the most recent to the oldest:
Frank Nordberg wrote:> Does anybody know how to get WebDNA to do
[math] calculations with > international date formatting (dd/mm/yyyy)?> I managed to figure it out with the old version of WebDNA but after I > upgraded, it's all a mess again, no matter how I set the webDNA > preferences.Set your "Date Display Format" pref to %d/%m/%Y.Set your "Read Date Format" to Day/Month/YearThen do some math:2 days from now: [math date]{
[date]}+{02/00/0000}[/math](just tested on a local OSX Enterprise WebDNA 6.2 to verify that it works)> ---> > Oh, and btw, have anybody else also noted that the "Math to use Date > Display Format" pref does exactly the opposite of what it's supposed to? > On my server at least, the [MATH date] tag uses the display format when > it's set to "no" but not when it's set to "yes"Yep. :-/ This is a bug in the admin templates. Thanks for bringit to light to the list. Until we release a newversion, you can edit the file /WebCatalogEngine/admin/AdminPrefs.dnalines 189 and 190.. just switch the "yes" and "no" at the end of thoselines.Donovan> Frank Nordberg> http://www.musicaviva.com> http://stores.ebay.com/Nordbergs-Music-Store?refid=storeP.S. Frank, it's always helpful to include environment details whenposting issues. Sometimes problems can be specific to a platform, Edition, and/or WebDNA version number.-- Donovan BrookeWebDNA Software Corporationhttp://www.webdna.us**[Square Bracket Utopia]**
Donovan Brooke
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:
I give up!! (1997)
Securing a Directory (2000)
more trouble with [showif] in [search] = busted [shownext] (2000)
Webcatalog installation on debian ? (2003)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Searchable list mail via wwebcat (1998)
RE: protect tag on NT (1997)
Template Security error (1997)
Re1000001: Setting up shop (1997)
Strange errors in error log (1998)
[WebDNA] High-profile WebDNA sites? (2008)
tabs as delimiters (2004)
Replace Statement (1997)
Encrypt Decrypt URL UnURL Weirdness (2001)
problem serving foreign languages text (1997)
WebCatalog can't find database (1997)
SV: Mass Mail (2000)
Authorize.net growing pains (2002)
Error & Problem (1997)
Searching for words equal to A or equal to B (1999)