Re: Fun with Dates (syntax)

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45137
interpreted = N
texte = Just add 6 to the date.[Math]NextMonday={[date]}+6[/Math] Brian www.webdnadev.net Online WebDNA Developers' Network-----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of spam Sent: Tuesday, November 12, 2002 1:54 PM To: WebCatalog Talk Subject: Fun with Dates (syntax) Hi,When creating a mathematical expression with [date] I don't seem to be able to add any other attributes:I need to work out when every next monday is for an online calendar.[showif [date format=%a]=Tue] [Math date]{[date]}+{00/06/0000}[/Math] [/showif]..produces the date plus 6 days. So far so good. But can I name this variable? Doesn't seem to work:[Math date]nextmonday={[date]}+{00/06/0000}[/Math] [nextmonday]..produces the figure 731537 which I can only assume is a syntax error on my part somewhere, but can't see what.(it's the same story with[Math date]nextmonday=({[date]}+{00/06/0000})[/Math] [nextmonday])In addition, I need to reformat the date so it is in the format 20021112, but adding in the attribute doesn't seem to work. Can I change the date format in a [math] context?[Math date]{[date format=%Y%m%d]}+{00000006}[/Math]? would be the ideal.Any help appreciated.Pat ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Fun with Dates (syntax) (Gary Krockover 2002)
  2. Re: Fun with Dates (syntax) (spam 2002)
  3. Re: Fun with Dates (syntax) (Gary Krockover 2002)
  4. Re: Fun with Dates (syntax) (Brian Boegershausen 2002)
  5. Fun with Dates (syntax) (spam 2002)
Just add 6 to the date.[math]NextMonday={[date]}+6[/Math] Brian www.webdnadev.net Online WebDNA Developers' Network-----Original Message----- From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of spam Sent: Tuesday, November 12, 2002 1:54 PM To: WebCatalog Talk Subject: Fun with Dates (syntax) Hi,When creating a mathematical expression with [date] I don't seem to be able to add any other attributes:I need to work out when every next monday is for an online calendar.[showif [date format=%a]=Tue] [Math date]{[date]}+{00/06/0000}[/Math] [/showif]..produces the date plus 6 days. So far so good. But can I name this variable? Doesn't seem to work:[Math date]nextmonday={[date]}+{00/06/0000}[/Math] [nextmonday]..produces the figure 731537 which I can only assume is a syntax error on my part somewhere, but can't see what.(it's the same story with[Math date]nextmonday=({[date]}+{00/06/0000})[/Math] [nextmonday])In addition, I need to reformat the date so it is in the format 20021112, but adding in the attribute doesn't seem to work. Can I change the date format in a [math] context?[Math date]{[date format=%Y%m%d]}+{00000006}[/Math]? would be the ideal.Any help appreciated.Pat ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Brian Boegershausen

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:

japanese characters (1997) Migrating to NT (1997) add to cart within a page? (1997) Update quantity (2000) Form Problem with ! (2000) WC Database Format (1997) WebMerchant Only reads 1.4 order files error (1997) FEATURE REQUEST: Auto Resizing of images (2002) [ShowNext] feature in 2.0 (1997) search form problem.. (1997) Webcat and other cgi (2000) Individual LineItemChangePassword files would be better ... (1999) createfolder not behaving as expected (1999) webcat pro (1998) WebTen Memory Error with Plug-In (1998) Javascript Stored in a Database (2003) OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998) E-mailer error codes (1997) Simple way to create unique SKU (1997) Updating Prices in Online Database (1999)