Link to home
Start Free TrialLog in
Avatar of JoshDale
JoshDale

asked on

Get the first day of the month

I need to get the first day of the month. For example Tuesday = 3
Avatar of SidFishes
SidFishes
Flag of Canada image

Avatar of JoshDale
JoshDale

ASKER

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
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))>
Please post here asking to have the question PAQ - include a link to this question:

https://www.experts-exchange.com/Community_Support/
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial