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:

For those of you not on the WebCatalog Beta... (1997) page redirect in webDNA (1997) [ot] ShowIf & HideIf Question (1998) WebStar and CopyFile (2000) [WebDNA] New request for websites that currently run WebDNA (2009) WebCat2_Mac RETURNs in .db (1997) Can he do that? (1998) [isfile] ? (1997) Database Field Additions (2000) Append..... doesn't (2000) Bug Report, maybe (1997) Non-Cart Files in Shopping Cart Folder (1997) WebDNA release (2005) [WebDNA] Replace / Append only unique data (2013) no time stamp & different times from emailer (1998) RE: Answer: WebDelivery downloads alias, not original ? (1997) Shopping problems with 2.1b3 acgi (1997) Is the Finder required? (1998) argh must send var to iframe to load webDNA search (2003) Practice runs ? (1997)