Fun with Dates (syntax)
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45135
interpreted = N
texte = Hi,When creating a mathematical expression with [date] I don't seem to be ableto 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 thisvariable? 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 mypart 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 dateformat 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:
Hi,When creating a mathematical expression with [date] I don't seem to be ableto 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 thisvariable? 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 mypart 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 dateformat 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/
spam
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:
redondant server and Webcatalog (2000)
Quit revisited (1997)
taxTotal, grandTotal (1997)
Opening 'order file'. (1999)
$Quit, $CloseDatabase corrections (1997)
RE: [input] questions (1997)
Extended [ConvertChars] (1997)
[MATH SHOW=F]. show=f does what? (1999)
showif with math? (2000)
WebMerchant 1.6 and SHTML (1997)
[WebDNA] Still having problems (2008)
questions on variations of Ken's [text multi=T]var1=&var2=[/text] (1999)
LOOP and IF statements (1997)
Re:Signal Raised (1997)
Just Testing (1997)
PIXO support (1997)
hideif/showif causes error if wrapped around searches (2003)
Banner DNA (1997)
Append command (2000)
Related database (2000)