473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ASP.NET and C# - Calculating 1st and 3rd wednesday of the month on a calendar

I have a pretty simple thing i have to do... i have a calendar on an aspx page and i have meetings set up every first and 3rd wednesday of each month. theres a button under the calendar that says "Find next meeting" and the calendar is supposed to display the next meeting depending on which date is selected.
Anyone have any idea of a formula or something that could get me on track to finishing this off? im kinda stuck.
Thanks in advance.
Jul 16 '08 #1
3 2878
Plater
7,872 Expert 4TB
Start on the first day of the month. Examine if it is a wednesday. If not, increment up one day. Examine if it is wednesday. Continue on like this finding all the wednesdays. The first and 3rd wednesday will be the days you want.
Jul 16 '08 #2
kenobewan
4,871 Expert 4TB
You may find this article interesting, a way to use data with your calendar. While not enabling binding, this is the way many people add vacation dates:
The Calendar Control and the DayRender Event in ASP.Net
Jul 16 '08 #3
thanks. that helped :).
Jul 16 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: yaron | last post by:
Do someone know how to reach the access methods of the "month calendar" controler in MFC? Such like getting the date value. Thanks Yaron
0
by: Brian Henry | last post by:
Why does the month calendar have a circled date in design view of it but at runtime its a square that is only 1 pixel wide? it's very hard to see on the high res screens we are using and a thicker...
0
by: Mini Nutz | last post by:
Hi to everyone, I am currently designing a form that uses the MonthCalendar control, other panels are displayed for each day selected with the month calendar. My problem is that after 2...
4
by: Rain | last post by:
Hello, Does anyone know how i can disable the range selection in a month calendar control? I mean i dont want users to to select a range of dates. Can i do this? how? thank you so much.. and...
6
by: dwadish | last post by:
Hai guys !! help me if any code/ property support to a month calendar for enlarging it's size. i want to show pictures in a picture box when changing the month from the calendar control. Can I...
7
by: ajaydesai | last post by:
I have JavaScript code to dispaly two month calendar days at a time, but i have a problem both month that disaplay at a time have same days (for example May and June has same days, June and July have...
6
by: thamaraikeeran | last post by:
i want to display the selected date from the month calendar in the textbox.please tell me how to do?plz reply quikly.
2
by: ncsthbell | last post by:
I am having problems getting the end date to calculate correctly. I start with Quarter '03/02', (YY/QTR), for this it means it is for the 2nd qtr of 2003. My goal is to get the begin & end dates...
5
by: =?Utf-8?B?bWFib25k?= | last post by:
Hi Using a month calendar control so that my user can select a start and end date for a range that will be used in a SQL query. Problem.....if user selects a date in one month and then scrolls...
3
by: Droopy | last post by:
Hi, Iam using a MonthCalendar.I have hosted this in a popup control.On click of an image,i get my month calendar(i.e. the popup) displayed.Once i choose the date ,the selected date gets populated...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.