I have a date field that I want to set to display the last day of the previous month when I select a check box. Can anyone give me the code for this please?
Thanks, but not sure how to write this so that when I select the check box today (on Nov 17th) the field I wish to set the date in will read October 31st?
Thank again. I know it sounds easy but confusion reigneth!
Where (obviously) "MyDate" can be any valid date. Replacing the "0" with "1" (again so obviously) will return the date of the first of the month of "MyDate". There are so many variations of this that it is tedious to even begin to list them. The interested user may discover some way to return almost any logically derivablle date from some elaboration and variation.
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.