Jump to content
Server Maintenance This Week. ×

Help Calculating First Day of the Month


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

Recommended Posts

I am trying to take a date, that could be any day of a particular month, and use a calculation that will determine the first day of the month that the date falls in. For example if the user enters 6/16/06 the calculatin will result in 6/1/06 (the first day of the month). Please help if you can...

Link to comment
Share on other sites

But this seems a bit easier to write:

EnteredDate + 1 - Day ( EnteredDate )

Perhaps the following, could restore the image of being just slightly crafty:

EnteredDate - Day ( EnteredDate-1 )

It's political science here, not just one cut but two, it shows willingness to be executive even when it hurts :)

--sd

Link to comment
Share on other sites

This topic is 6542 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.