Get the first day of the month

Posted on 2005-02-26
Medium Priority
Last Modified: 2013-12-24
I need to get the first day of the month. For example Tuesday = 3
Question by:JoshDale
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 36

Expert Comment

ID: 13412548

Author Comment

ID: 13412572
I didn't see any information relating to my question.

I am trying to find the first day of the month, for example:
sun = 1
mon = 2
tues = 3
wed = 4
thurs = 5
fri = 6
sat = 7

Author Comment

ID: 13412580
Never mind, I came up with a solution, it was very simple, I just didn't give it enough thought.

<cfset DayStart = DayOfWeek(CreateDate(Year(URL.ThisDate), Month(URL.ThisDate), 1))>
LVL 35

Expert Comment

ID: 13425311
Please post here asking to have the question PAQ - include a link to this question:


Accepted Solution

modulo earned 0 total points
ID: 13794289
PAQed with points refunded (500)

Community Support Moderator

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question