Hi all,
I am new to javascript, ajax, json and stuffs. So expectiong your most valuable help with regard to my requirement. Thanks in advance for helping me.

The requirement for me is I want to get the dates loaded in a table of JSP, which is to be done through Javascript function. Say I want all the date between two specified dates it can be more than a week, or month, or even more. These days should exclude Saturdays and Sundays within that range.

Say if I give the date range is between 01-05-2013 and 31-05-2013

Then I must be able to get the date list as below, which excludes Saturdays and Sundays

01-05-2013
02-05-2013
03-05-2013
06-05-2013
07-05-2013
08-05-2013
09-05-2013
10-05-2013
13-05-2013
14-05-2013
15-05-2013
16-05-2013
17-05-2013
20-05-2013
21-05-2013
22-05-2013
23-05-2013
24-05-2013
27-05-2013
28-05-2013
29-05-2013
30-05-2013
31-05-2013

Thanks a lot! That helped me a lot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.