Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Birthdate Entry
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

LanKuchang
Junior Member

Malaysia
120 Posts

Posted - 27 December 2002 :  13:17:09  Show Profile  Send LanKuchang an AOL message
How can I change birthdate entry calender to show other year instead of its default 1989?
My forum is reserved specially for my schoolmates and all of us share the same birthyear.

GauravBhabu
Advanced Member

4288 Posts

Posted - 27 December 2002 :  13:30:13  Show Profile
File: pop_datepicker.asp
Line: 200


Rem -Assign a Default date to dDate variable
dDate = DateAdd("yyyy", -13, strForumTimeAdjust)



Modify as below. Replace the word YEAR with the year you want to show as default.
Rem -Assign a Default date to dDate variable
dDate = cDate(1/1/YEAR)

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

LanKuchang
Junior Member

Malaysia
120 Posts

Posted - 27 December 2002 :  14:26:27  Show Profile  Send LanKuchang an AOL message
Thanks GauravBhabu,
I did as what you told but the year change to 1901 now.

I played around with line;
dDate = DateAdd("yyyy", -13, strForumTimeAdjust)
and change -13 to other number and seen the effect.

Looks like I have to modify that line every year then?


Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 27 December 2002 :  14:45:46  Show Profile
try this
dDate = DateSerial(YEAR,1,1)
Go to Top of Page

LanKuchang
Junior Member

Malaysia
120 Posts

Posted - 28 December 2002 :  00:25:18  Show Profile  Send LanKuchang an AOL message
dDate = DateSerial(YEAR,1,1)

thank you very much. it works .


since i assume you are the author of datepicker code, how about making it display month and year first then after the user click go, they got to see the date selection.

what usually happended in my forum, users tend to click on date first then leave at it, then they complaint their birtday are wrong since i also use birthday mod to display their birthday with Event Calendar.

do i need to post this question at mod forum?

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 28 December 2002 :  02:18:58  Show Profile
I am not author of the datepicker code, however, I did contribute to it partially. It can be modified further to eliminate the problem mentioned by you.
Go to Top of Page

LanKuchang
Junior Member

Malaysia
120 Posts

Posted - 28 December 2002 :  10:29:59  Show Profile  Send LanKuchang an AOL message
OK
Let's start solve this little problem, if you don't mind.
To make the user see month and year first, then click GO, they see the calendar to pick a date.

I'm only begin to learn ASP and VBscript after I installed Snitz forum. Now I kind of getting hook on it.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.59 seconds. Powered By: Snitz Forums 2000 Version 3.4.07