Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #9440
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: toString Method with Parameters |
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
| References | (2 earlier) <o1vfe7l0gbc4nu2ievgf2849qk5hc66228@4ax.com> <rGMF4lGipl6OFwnw@invalid.uk.co.demon.merlyn.invalid> <74fle7tvc61qitmcrhv85mq0ovi1qpf11g@4ax.com> <pSjFNiAYKQ7OFwfO@invalid.uk.co.demon.merlyn.invalid> <e16ve799jtgr1ar41963iep087vaf19l7u@4ax.com> |
| Message-ID | <Xns9FC0DA32A8732eejj99@194.109.133.133> (permalink) |
| Date | 2011-12-19 20:27 +0000 |
Gene Wirchenko wrote on 19 dec 2011 in comp.lang.javascript: > You are over confidently that you understand the situation that I > deal with. > > We have work orders for clients under which various work > transactions are done. Many of these work orders are billed monthly > or semi-monthly, and they recur so new work orders are required for > the next month. And you do those things with clientside scripting? > When generating the next month's work orders, it is > significant that a date is the last day of the month. September 30 + > 1 month is October 31 for us. So if you tell Javascript [I would urge you to use serverside (Java)script], this is a Javascript NG] to add one month and to set the day to zero, you get the last day of the month. Try: alert( new Date(2011, 12-1+1, 0) ); will return the last day of month 12 [December 2011] ============ Are al clients and the server in the same timezone, btw? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-12 15:04 -0800
Re: toString Method with Parameters Andreas Bergmaier <andber93@web.de> - 2011-12-13 01:14 +0100
Re: toString Method with Parameters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-13 02:41 +0100
Re: toString Method with Parameters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-12-13 03:42 +0100
Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-14 20:59 +0000
Re: toString Method with Parameters Richard Cornford <Richard@litotes.demon.co.uk> - 2011-12-13 04:29 -0800
Re: toString Method with Parameters Scott Sauyet <scott.sauyet@gmail.com> - 2011-12-13 10:00 -0800
Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-13 20:42 +0000
Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-13 17:48 -0800
Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-15 20:36 +0000
Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-15 19:45 -0800
Re: toString Method with Parameters Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-17 20:59 +0000
Re: toString Method with Parameters Gene Wirchenko <genew@ocis.net> - 2011-12-19 12:07 -0800
Re: toString Method with Parameters "Evertjan." <exjxw.hannivoort@interxnl.net> - 2011-12-19 20:27 +0000
csiph-web