Hi Eric
I've taken a look at your DateTime class and, as you say, it's a work in progress. Would you be kind enough to keep us informed of updates?
Many Thanks
Paul Newton
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Eric Selje Sent: 16 May 2018 23:29 To: ProFox Email List profox@leafe.com Subject: Re: Fun with date calculations in VFP
Updated. Clearly a lot of stuff left to do on this class! I got distracted by "work" but feel free to clone and contribute.
set proc to datetime addi _vfp.addoboject("DateTime", "DateTime") && Now it's always available ? _vfp.DateTime.FirstDayOfMonth() && 05/01/2018 ? _vfp.DateTime.FirstDayOfMonth(gomonth(date(),1) && 06/01/2018 ? _vfp.DateTime.LastDayOfMonth() && 05/31/2018 ? _vfp.DateTime.LastDayOfMonth(2012,2) && 02/29/2012 ? _vfp.DateTime.IsLeapYear(2012) && .t.
Eric
On Wed, May 16, 2018 at 5:02 PM, Ted Roche tedroche@gmail.com wrote:
LastDayOfMonth() or LDOM back in my 8.3 days, was always a popular request:
http://fox.wikis.com/wc.dll?Wiki~FindingTheLastDayOfTheMonth~VB
-- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com
[excessive quoting removed by server]