Re: Fun with Dates (syntax)

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45138
interpreted = N
texte = [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/ 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)
[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/ 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:

WebCatalog2 Feature Feedback (1996) [showif [numfound]=0]? (2000) Count regular expressions in a file (2007) Fun with dates (1997) WebCat2: Items xx to xx shown, etc. (1997) New command suggestion (1997) Thanks for tips, more quest (1997) [WebDNA] XML parsing issue with cdata (2012) Help name our technology! (1997) Protecting webdelivery (1997) SiteGaurd file Cache vs webcatalog cache (1997) Problem displaying search result (1997) More on the email templates (1997) [WebDNA] v 7 append (2012) SiteEditPro (1996) CHMOD recursive for directories (2006) Fun with Dates - revisited (1997) security (https) w webcat (1999) Pre-flight public flag (1997) Running 2 two WebCatalog.acgi's (1996)