Is there any function in VFP that returns the last date of the month. <p>Narjes<br><a href=mailto:njamal@bahrainstock.com>njamal@bahrainstock.com</a><br><a href= > </a><br>
Hi Narjes,<br><br>To return the last day of the current month:<br>gomonth(date() - day(date()) + 1, 1) - 1<br><br>To return the last day of lnMonth in lnYear:<br>gomonth(date(lnYear, lnMonth, 1), 1) - 1<br><br>Enjoy!<br> <p>Jon<br><a href=mailto: > </a><br><a href= > </a><br>Carpe Diem!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.