Inky Phil Posted August 18, 2011 Posted August 18, 2011 Hi everyone I am presetting some dates as an assumption that the user wants a report for the previous month. I intend to set a global (via script) to the 1st date of the month previous to the current date. I want to set another global to the last date of the month previous to the current date. I know this must be relatively simple but I cannot for the life of me work it out nor can I find it in the forum. Can anyone help please? Many thanks in advance Phil.
IdealData Posted August 18, 2011 Posted August 18, 2011 The last day of a month is also the day before the first day of the following month.
Fitch Posted August 18, 2011 Posted August 18, 2011 Let FileMaker do the math. Where yourDate = Get(CurrentDate) or some other date, this will give you the last day of the previous month: Date( Month( yourDate ) ; 0 ; Year( yourDate ) )
Recommended Posts
This topic is 4845 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now