Re: Fun with Dates (syntax)

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45144
interpreted = N
texte = [text show=f]NextMonday=[Math]{[date]}+{00/06/0000}[/Math][/text] [Format Days_To_Date %Y%m%d][NextMonday][/format]GK | Thanks Gary, still doesn't answer this though: | | 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. | | > From: Gary Krockover | > Reply-To: (WebCatalog Talk) | > Date: Tue, 12 Nov 2002 14:11:02 -0600 | > To: (WebCatalog Talk) | > Subject: Re: Fun with Dates (syntax) | > | > [Math date]NextMonday={[date]}+{00/06/0000}[/Math] | > | > GK | > | > | > | 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/ ------------------------------------------------------------- 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)
[text show=f]NextMonday=[math]{[date]}+{00/06/0000}[/Math][/text] [Format Days_To_Date %Y%m%d][NextMonday][/format]GK | Thanks Gary, still doesn't answer this though: | | 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. | | > From: Gary Krockover | > Reply-To: (WebCatalog Talk) | > Date: Tue, 12 Nov 2002 14:11:02 -0600 | > To: (WebCatalog Talk) | > Subject: Re: Fun with Dates (syntax) | > | > [Math date]NextMonday={[date]}+{00/06/0000}[/Math] | > | > GK | > | > | > | 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/ ------------------------------------------------------------- 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/ Gary Krockover

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:

WebDNA Windows 5.0 sendmail bug (2003) NT vs Mac (1997) WebCat2b13MacPlugIn - [include] (1997) Negative Quantity to Shopping Cart (2005) How to Sort Summ data ? (1997) WebCat and image maps (1997) AppleScript question (1997) using showpage and showcart commands (1996) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) [TCPconnect].... (2001) New Site Announcement (1998) multi condition with showif (2005) Virtual hosting and webcatNT (1997) You can't buy something twice... (1997) a search based on ^(contains) (1998) IIS4b2 and WebCatalog b19 (1997) too many nested tags ... (1997) Db design question (relational vs. flat?) (1998) Problem displaying search result (1997) Forcing price recalculation in shopping cart (1998)