g118481
asked on
How can i exclude weekends in my CF calendar?
I have a calendar program written in CF and HTML
When a user submits a vacation in the calendar, sometimes weekend days are part of the vacation.
Weekends are not charged as vacation, so I would like to change me code to not show the weekend days marked as a vacation day on the calendar.
Can someone help with this?
Cheers
When a user submits a vacation in the calendar, sometimes weekend days are part of the vacation.
Weekends are not charged as vacation, so I would like to change me code to not show the weekend days marked as a vacation day on the calendar.
Can someone help with this?
Cheers
you can see if the date is a saturday or sunday by doing dayOfWeek( now() ) and I beleive its 1 and 7
therefor when you are displaying your calendar... you would have a clause that checks dayOfWeek( #DATE# )
and at each daily iteration of the menu ...
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi62.htm
i think its better GUI design to show the days of the week including the weekend... one approach you can take is not to allow the user to select the weekneds... so if you have links to each day of the week, remove the links for saturday and sunday... just a thought
and at each daily iteration of the menu ...
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi62.htm
i think its better GUI design to show the days of the week including the weekend... one approach you can take is not to allow the user to select the weekneds... so if you have links to each day of the week, remove the links for saturday and sunday... just a thought
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I personally use a slightly different version of the above...