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:

Multiple Pulldowns (1997) Forms Search Questions (1997) webcat (2000) Email encryption (1998) Nebulous slow-down problem (2000) Date search bug (1998) Updating emailer (server) (2000) searching problem (1998) Multiple prices (1997) authorize.net CC processing (was WC on Mac OS X or Mac OS (2001) WebCat-Typhoon-WebTen (1998) Emailer problems (1998) Emailer setup (1997) 2.0Beta Command Ref (can't find this instruction) (1997) [WebDNA] SHA-512 How To Do It (2014) Search results templates (1996) What is WebDNA (1997) Database of Tax Rates? (1997) Win2003 Webserver (2003) RequiredFields notes ... (1997)