RE: ANother SHOWIF problem
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13473
interpreted = N
texte = Michael ->In my database, I have divided the on sale date of an item into month>(1-12), day (1-31), and year (01-99) fields (for a number of reasons).>If the current date is before the on sale date, I'd like to display some>info (so anything past September 16th will display the on sale date).>For some reason, the following code (which is inside a [SEARCH] context)>*always* displays the on sale date.>[SHOWIF [MATH][DATE][/MATH]<[MATH]{[MTH]/[DAY]/[YR]}[/MATH]]
On sale>[MTH]/[DAY]/[YR][/SHOWIF]>My date pref is set to %m/%d/%Y>I've tried it with WebCat 2.0 and 2.01.>The clock on the web server is correct.Try this instead:[SHOWIF {[DATE]}<{[MTH]/[DAY]/[YR]}]
On sale [MTH]/[DAY]/[YR][/SHOWIF]It appears to work for me.Hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Michael ->In my database, I have divided the on sale date of an item into month>(1-12), day (1-31), and year (01-99) fields (for a number of reasons).>If the current date is before the on sale date, I'd like to display some>info (so anything past September 16th will display the on sale date).>For some reason, the following code (which is inside a
[search] context)>*always* displays the on sale date.>[SHOWIF
[math][date][/MATH]<
[math]{[MTH]/[DAY]/[YR]}[/MATH]]
On sale>[MTH]/[DAY]/[YR][/SHOWIF]>My date pref is set to %m/%d/%Y>I've tried it with WebCat 2.0 and 2.01.>The clock on the web server is correct.Try this instead:[SHOWIF {
[date]}<{[MTH]/[DAY]/[YR]}]
On sale [MTH]/[DAY]/[YR][/SHOWIF]It appears to work for me.Hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Marc Eagle
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:
(OFF TOPIC) System 8.5.1 FINDER ERROR (1999)
Browser Caching (2003)
Text data with spaces in them... (1997)
[Semi-OT] Kinda cool tool (how does it work?) (2004)
WebCatb15 Mac CGI -- [purchase] (1997)
WebDNA Trouble... (1999)
[showif]/[hideif] question (1997)
[WebDNA] WordPress plugin (2020)
RE: WebCat and image maps (1997)
Strange Date happenings (2007)
Sherlock and WebCat (1998)
SiteEdit NewFile.html ? (1997)
[OT] Linux Mailservers (2003)
Security Issue (1997)
Best Catalog Program (1998)
[WebDNA] Windows Server2012 (2016)
[sendmail] and [formvariables] (1997)
Cart# (1997)
[sendmail] problem getting silly now =\ (2000)
Help formatting search results w/ table (1997)