Date Calulation

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11242
interpreted = N
texte = Do the date calculations compensate for leap years? I assume that they do, but my formulas seem to be a few days off. The following formula should result in the day (0-6) of the first day of the month based on form fields of a month and a year: [format date %w][math]({[form.month]/1/[form.year]}-{01/01/1900})*86400[/math][/format]86400 is seconds per day.The tests for 1997:Month Real Calendar Formula Jan 3 0 Feb 6 3 Mar 6 3 April 2 6 May 4 1etc. Associated Messages, from the most recent to the oldest:

    
  1. Re: Date Calulation (Grant Hulbert 1997)
  2. Date Calulation (Dan Gilpin 1997)
Do the date calculations compensate for leap years? I assume that they do, but my formulas seem to be a few days off. The following formula should result in the day (0-6) of the first day of the month based on form fields of a month and a year: [format date %w][math]({[form.month]/1/[form.year]}-{01/01/1900})*86400[/math][/format]86400 is seconds per day.The tests for 1997:Month Real Calendar Formula Jan 3 0 Feb 6 3 Mar 6 3 April 2 6 May 4 1etc. Dan Gilpin

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:

syntax question, not in online refernce (1997) acrobat -> wc (1998) Need relative path explanation (1997) testing (2001) listfiles shows invisible files ... (1999) Trouble with formula.db + more explanation (1997) SKU lookup (1997) Mac Vs WindowsNT (1997) orderfile location (1999) Problem with webcat install (1998) Highlighting words found in a keyword search (2003) How do you cause a new window to appear behind the currentwindow? (1999) Search in 2 or more catalogs (1997) Dynamic Lists (2005) Sort Order on a page search (1997) [ShowNext] (1997) Setting vars in a text file..... (2004) The word TYPE in search contexts and fields (1998) [WebDNA] Cost to upgrade WebDNA 6.2 to run on Win2008 / Win7 (2012) Emailer Error 550 (Was Strange Crash) (1998)