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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Internationalization (v4)
 Birthdate calendar
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 24 August 2002 :  10:44:50  Show Profile
One of the new features in v3.4 if the Birthdate calendar pop_datepicker.asp.
It shows Subday as the first date of the week. Just wondering if v4.0 would include an option to set the first day of the week. For example it's Monday in the UK.<

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 August 2002 :  10:59:36  Show Profile
That can be done easily. I will post the changes required to be made as soon I get some time to do it.<
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 August 2002 :  11:20:08  Show Profile
File pop_datepicker.asp


Note: Changes below apply to the file to be downloaded from the link below:

http://kinser.121hosts.net/files/pop_datepicker.zip

Changes to be made

Find the following statement on Line 20
dim strCookieURL, strTimeAdjust, strForumTimeAdjust


Add the part in red as shown below

dim strCookieURL, strTimeAdjust, strForumTimeAdjust, intFirstDayOfWeek


Find the following statement on Line 23
strForumTimeAdjust = DateAdd("h", strTimeAdjust , Date())


Add the following statement just below the above statement
Rem -vbMonday,vbTuesday,vbWednesday,vbThursday,vbFriday,vbSaturday,vbSunday
Rem -Change the day to whichever day you want as the first day of week
Rem -Following sets the Moday as the first day of week
intFirstDayOfWeek = vbMonday



Find the following statement on Line 90
GetWeekdayMonthStartsOn = WeekDay(dTemp)


Change it as below

GetWeekdayMonthStartsOn = WeekDay(dTemp, intFirstDayOfWeek)


Find the following statement on Line 246


WeekDayName(iWeekDayName, True)



Change as below

WeekDayName(iWeekDayName, True,intFirstDayOfWeek)
<

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)

Edited by - GauravBhabu on 24 August 2002 11:24:22
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 03 October 2002 :  20:55:06  Show Profile
bump<

Stop the WAR!
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 03 October 2002 :  21:42:05  Show Profile
Is this bump about changes suggested<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 03 October 2002 :  21:55:10  Show Profile
I've been planning to check the "first day of week" issues and support it from the library. There is already a field in the LCID table for this purpose. I was planning to ready that for MODs (Events Calendar) but DOB came .

In my most current v4b04 code, it already uses the weekdays & months from the definitions in the language pack...

I was just bumping for myself...
<

Stop the WAR!
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 04 October 2002 :  08:28:27  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:
For example it's Monday in the UK.


Now that I think about it, it's strange that the week doesn't start on Monday in the USA also. Especially considering the religious influence here, you'd think that the 7th day of the week would be for resting instead of the 1st.
<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 10 October 2002 :  11:17:57  Show Profile
DOW in connection with LCID table is implemented in v4b04...<

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