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/Year Then 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 bring it to light to the list. Until we release a new version, you can edit the file /WebCatalogEngine/admin/AdminPrefs.dna lines 189 and 190.. just switch the "yes" and "no" at the end of those lines. Donovan > Frank Nordberg > http://www.musicaviva.com > http://stores.ebay.com/Nordbergs-Music-Store?refid=store P.S. Frank, it's always helpful to include environment details when posting issues. Sometimes problems can be specific to a platform, Edition, and/or WebDNA version number. -- Donovan Brooke WebDNA Software Corporation http://www.webdna.us **[Square Bracket Utopia]** Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Dates (Tom Duke 2009)
  2. Re: [WebDNA] Dates (Frank Nordberg 2009)
  3. Re: [WebDNA] Dates (Donovan Brooke 2009)
  4. Re: [WebDNA] Dates (Frank Nordberg 2009)
  5. Re: [WebDNA] Dates (Frank Nordberg 2009)
  6. Re: [WebDNA] Dates (Donovan Brooke 2009)
  7. [WebDNA] Dates (Frank Nordberg 2009)
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/Year Then 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 bring it to light to the list. Until we release a new version, you can edit the file /WebCatalogEngine/admin/AdminPrefs.dna lines 189 and 190.. just switch the "yes" and "no" at the end of those lines. Donovan > Frank Nordberg > http://www.musicaviva.com > http://stores.ebay.com/Nordbergs-Music-Store?refid=store P.S. Frank, it's always helpful to include environment details when posting issues. Sometimes problems can be specific to a platform, Edition, and/or WebDNA version number. -- Donovan Brooke WebDNA Software Corporation http://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:

WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Setting a range in a search (1998) Something wrong with this list? (2006) WebCat2 - Getting to the browser's username/password data (1997) SiteGuard Admin Feature ? (1997) Detecting/limiting connections in the developer edition ... (2004) RAM variables (1997) [WebDNA] Clean URLS job - will pay (2010) I'm tired of all this! (2000) Multiple Ad databases? (1997) Printing controls - form feeds (2002) [OT] What log analyzer do you use? (2000) Searchable list archive (1997) Generating Report Totals (1997) Nested search (1997) WebCommerce: Folder organization ? (1997) StoreBuilder Q's (2003) no global [username] or [password] displayed ... (1997) Using Cookie for client specific info? (1997) searchable list archive (1997)