Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 116
  • Last Modified:

Get the first day of the month

I need to get the first day of the month. For example Tuesday = 3
0
JoshDale
Asked:
JoshDale
1 Solution
 
JoshDaleAuthor Commented:
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
0
 
JoshDaleAuthor Commented:
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))>
0
 
mrichmonCommented:
Please post here asking to have the question PAQ - include a link to this question:

http://www.experts-exchange.com/Community_Support/
0
 
moduloCommented:
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now