Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 22nd, 2004, 06:07 PM
Authorized User
 
Join Date: Mar 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to gmoney060 Send a message via MSN to gmoney060
Default Calender

I need to make a calander that is a table, and has cells for all the dates... I think i could do that, but i am not sure how to make it so it will know how many days per month, or what day of the week a new month starts or ends.... If anyone could help with this it would be great! You can also IM (AOL) at G Unit2507

Grant!

 
Old August 22nd, 2004, 07:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Too bad you aren't using .NET, as this is in there by default... there may be an external product that does this.

Brian
 
Old August 22nd, 2004, 11:15 PM
Authorized User
 
Join Date: Mar 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to gmoney060 Send a message via MSN to gmoney060
Default

if anyone else knows anything about this it would be great!

 
Old August 23rd, 2004, 12:00 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


  Why do you want to develop again if the built in control is available. Otherwise you can download readymade components.

Or

to find the weekday where the first day of the month starts, use the function

weekday(strDate)

Make sure the table having 7 columns. You start from the current month first date and weekday. And follow until the end of the month. Generate rows and columns of the table dynamically.

You can find the total number of days in the current month using
regular formula.


    if mnthno=1 or mnthno=3 or mnthno=5 or mnthno=7 or mnthno=8 or mnthno=10 or mnthno=12 then
        nodays=31
    elseif mnthno=2 then
        if (yearno mod 4)=0 then
            nodays=29
        else
            nodays=28
        end if
    else
        nodays=30
    end if





 
Old August 23rd, 2004, 12:10 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

A number of calendar scripts are freely available at

http://www.hotscripts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
disply calender sharadavani6 Servlets 2 November 5th, 2007 06:14 AM
Regarding Calender Button kotaiah Excel VBA 0 September 21st, 2006 07:21 AM
calender crmpicco Classic ASP Basics 2 March 23rd, 2005 01:21 PM
Calender control anita VB How-To 4 December 12th, 2004 03:10 PM
Calender Controls KennethMungwira Access 12 October 29th, 2003 04:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.