Jump to content

Enter date range for current month


This topic is 5457 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

I'd like to set up in a script where it will enter the date range for the current month as part of the Find portion of the script (FM 9). I have it partly figured out but, of course, the ending day is where I'm stuck at. This i what I came up with, so far:

Set Field [TimeSheets Current::Date; Month ( Get ( CurrentDate ) ) & "/" & "1" & "..." & Month ( Get ( CurrentDate ) ) & "/" & "30"]

Obviously, the beginning is easy, because every month starts with 1, but every month doesn't end with 30.

What can I put in place of the "30" so that, based on what the current month is, the range will include all the days for the month?

Help is definitely appreciated. Thank you!

Link to comment
Share on other sites

This topic is 5457 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.