Re: [WebDNA] MAX Date

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 114354
interpreted = N
texte = 1971 Hi Jess, If you want to retrieve the largest date use this WebDNA code instead: [search db=3Dpetsa.db&nePetsadatarq=3D[blank]&dePetsaSort=3D1&PetsaType=3DDate] [founditems] [showif [index]=3D1] [text]largestDate=3D[petsa][/text] [/showif] [index] - [math date]{[petsa]}[/math]
[/founditems] [/search] The largest date is [largestDate]. BTW, if you still have problems you might try formatting all those Petsa values in the db to WebDNA's standard date format which is MM/DD/YYYY. I'm pretty sure WebDNA does not actually require the preceding zeros in your single-digit month and day values, but it never hurts to comply with standards "just in case". :) Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Web Database Systems and Linux Server Administration On 07/22/2018 09:06 AM, Jess Villamor wrote: > =3D=3D=3D=3D=3D=3Dpetsa.db=3D=3D=3D=3D=3D=3D=3D=3D=3D > ref=C2=A0=C2=A0=C2=A0 petsa > 1=C2=A0=C2=A0=C2=A0 1/2/2018 > 2=C2=A0=C2=A0=C2=A0 12/13/2016 > 3=C2=A0=C2=A0=C2=A0 7/20/2015 > 4=C2=A0=C2=A0=C2=A0 12/23/2018 > 5=C2=A0=C2=A0=C2=A0 4/5/2017 >=20 > Why can't I get the maximum date from the above database? >=20 > [search db=3Dpetsa.db&neRefData=3D0&PetsaSort=3D1&PetsaType=3DDate] > [max field=3Dpetsa] >

> [founditems] > [index] - [math date]{[petsa]}[/math]
> [/founditems] > [/search] >=20 > Thanks... > --------------------------------------------------------- This > message is sent to you because you are subscribed to the mailing > list talk@webdna.us To unsubscribe, E-mail to: > talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: > support@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] MAX Date (Kenneth Grome 2018)
  2. [WebDNA] MAX Date (Jess Villamor 2018)
1971 Hi Jess, If you want to retrieve the largest date use this WebDNA code instead: [search db=3Dpetsa.db&nePetsadatarq=3D[blank]&dePetsaSort=3D1&PetsaType=3DDate] [founditems] [showif [index]=3D1] [text]largestDate=3D[petsa][/text] [/showif] [index] - [math date]{[petsa]}[/math]
[/founditems] [/search] The largest date is [largestDate]. BTW, if you still have problems you might try formatting all those Petsa values in the db to WebDNA's standard date format which is MM/DD/YYYY. I'm pretty sure WebDNA does not actually require the preceding zeros in your single-digit month and day values, but it never hurts to comply with standards "just in case". :) Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Web Database Systems and Linux Server Administration On 07/22/2018 09:06 AM, Jess Villamor wrote: > =3D=3D=3D=3D=3D=3Dpetsa.db=3D=3D=3D=3D=3D=3D=3D=3D=3D > ref=C2=A0=C2=A0=C2=A0 petsa > 1=C2=A0=C2=A0=C2=A0 1/2/2018 > 2=C2=A0=C2=A0=C2=A0 12/13/2016 > 3=C2=A0=C2=A0=C2=A0 7/20/2015 > 4=C2=A0=C2=A0=C2=A0 12/23/2018 > 5=C2=A0=C2=A0=C2=A0 4/5/2017 >=20 > Why can't I get the maximum date from the above database? >=20 > [search db=3Dpetsa.db&neRefData=3D0&PetsaSort=3D1&PetsaType=3DDate] > [max field=3Dpetsa] >

> [founditems] > [index] - [math date]{[petsa]}[/math]
> [/founditems] > [/search] >=20 > Thanks... > --------------------------------------------------------- This > message is sent to you because you are subscribed to the mailing > list talk@webdna.us To unsubscribe, E-mail to: > talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: > support@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us . 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:

Warning Message? (2000) Quit revisited (1997) To Use Cookies or Not To Use Cookies (2003) Mac: [ListFiles] bug alert (1997) using showpage and showcart commands (1996) URL for Discussion Archive (1997) How many Databases can I open? (2003) WebCat for Site Search? (1997) apparently to problem isolated (1997) Problems with large number of items in a cart. (1998) OT : Site speed feedback (2002) Great product and great job ! (1997) Where is the secure setting for text variables? (2003) Test (2003) Setting a range in a search (1998) Running _every_ page through WebCat ? (1997) Webmerchant email misinterpreted tags (1998) webmerchant/ Mac Auth. and CC refunds (1998) Generating unique SKU from [cart] (1997) WYSIWYG HTML editor for use in browser (2001)