Re: math on date?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12659
interpreted = N
texte = >You mean you want the date to 'roll over' when the number of hours exceeds >24 greater than the date in question? I believe we can't mix dates and >times into the same math context by simply adding {[date]}+{[time]}, so >for now you will probably have to get creative with some [time %H] and >math equations on your own.Here's one:The following expression works fine:Date is [MATH DATE]{[DATE]}+1[/MATH]However, am I stuck with the default output of 07/22/97?When I try this:[format date %m %j, %Y][MATH DATE]{[DATE]}+1[/MATH][/format]I get this:Date is 01 001, 1970Anyway to control the date output?Thanks,Olin..................................................................... W O R L D P O I N T I N T E R A C T I V E OLIN KEALOHA LAGON director, website creation Honolulu San Francisco 2800 woodlawn drive 222 sutter street olin@worldpoint.com suite 170 sixth floor www.worldpoint.com honolulu, hi 96822 san francisco, ca 94108 voice.808.539.3978 fax.808.539.3943 cell.808.291.1610 ..................................................................... Associated Messages, from the most recent to the oldest:

    
  1. Re: math on date? (Grant Hulbert 1997)
  2. Re: math on date? (Kenneth Grome 1997)
  3. Re: math on date? (Olin 1997)
  4. Re: math on date? (Grant Hulbert 1997)
  5. Re: math on date? (Olin 1997)
  6. Re: math on date? (Grant Hulbert 1997)
  7. math on date? (Olin 1997)
>You mean you want the date to 'roll over' when the number of hours exceeds >24 greater than the date in question? I believe we can't mix dates and >times into the same math context by simply adding {[date]}+{[time]}, so >for now you will probably have to get creative with some [time %H] and >math equations on your own.Here's one:The following expression works fine:Date is [MATH DATE]{[date]}+1[/MATH]However, am I stuck with the default output of 07/22/97?When I try this:[format date %m %j, %Y][MATH DATE]{[date]}+1[/MATH][/format]I get this:Date is 01 001, 1970Anyway to control the date output?Thanks,Olin..................................................................... W O R L D P O I N T I N T E R A C T I V E OLIN KEALOHA LAGON director, website creation Honolulu San Francisco 2800 woodlawn drive 222 sutter street olin@worldpoint.com suite 170 sixth floor www.worldpoint.com honolulu, hi 96822 san francisco, ca 94108 voice.808.539.3978 fax.808.539.3943 cell.808.291.1610 ..................................................................... Olin

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:

[carts] and databases (1997) WebCat2 as a chat server? (1997) Re[2]: Support suggestions - long (was politeness, et al) (2000) Escape the Root! (2002) Converting Quotes in Javascript (2001) webcat- multiple selection in input field (1997) Error.html (1997) Simple way to create unique SKU (1997) Multiple catalog databases and showcart (1997) Prevent multiple appends with Reload Button (1997) Upgrading old WebCat Database Files (1997) WebCat editing, SiteGuard & SiteEdit (1997) Public Beta for WebCatalog 4.0 is Available (2000) WebCat 5 Intranet Question (2003) [WebDNA] upgrading to 8.1 or 8.2? (2016) Yet another db manager (2004) [Summary] re: Emailer setup (1997) different show next (1997) Some Questions (1997) writefile and deletefile (1998)