Re: sorting dates
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 22386
interpreted = N
texte = >I want to sort dates by showing ones in the database that were entered the>past month. 2months, 3months etc.>>What would be the simple code for this? I have tried to subtract from the>month number, but what if the present month is 1?The secret is to use [math] with dates. For instance, to get today - 3months you would use:[math date]{[date]}-{03/00/0000}[/math]Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I want to sort dates by showing ones in the database that were entered the>past month. 2months, 3months etc.>>What would be the simple code for this? I have tried to subtract from the>month number, but what if the present month is 1?The secret is to use
[math] with dates. For instance, to get today - 3months you would use:[math date]{
[date]}-{03/00/0000}[/math]Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
PCS Technical Support
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:
[WebDNA] PayPal IPN (was: paypal FINALLY!!!!) (2009)
setting cookies for another domain? (2002)
Thanks Grant (1997)
New Image Gallery using WebDNA and ImageMagick (2003)
WebDNA to PHP (2008)
Working Days (2004)
Requiring that certain fields be completed (1997)
WebDNA Intranet Edition release (2002)
100% cpu load (2006)
locking variables? (2000)
Off Topic - OS X web server, FTP accounts (2003)
Making a page expire with web catalog? (1999)
[WebDNA] plupload ? (2012)
[WebDNA] Captcha question (and free code) (2009)
all records returned. (1997)
Search multiple fields (1997)
Email and name capture (1999)
multiple product databases (1997)
What about this gremlin issue? (2000)
Bug alert! (1997)