
Table of Contents
- How do I set the calendar to a specific date when opened?
- What if I need to set a date that is beyond the year 2100?
- What if I need to have 2 date fields in the same form?
- How do I change the color of my calendars?
- How do I set the default date format?
- Can I use a mouseover to call the calendar?
- How do I set the location where the calender will popup?
- How do I change the
date to fulldatetime format?
You can add a name / value pair to the querystring of your link that will set the starting date of the calendar.
name = tdate value = ##/##/####
Each time you change the year field, the calendar increments by 100 years in both directions of the year selected. You can move forward or backward as far as you wish.
Example: If you set the year to 1970 you can then move from 1870 to 2070. If you then select 2070 the calendar will have selections from 1970 to 2170 etc.
No problem. Just adjust your links to send the proper field name so that the date will be returned to the proper field.
example1: fieldname=field1 example2: fieldname=field2
You can send color values to the calendar using:
bgcolor1=######
Where ###### is the numeric value of the color you want to use.
If you want to change the text colors of the calendar you need to edit the style elements in the top of date.asp. These can be found between <style type="text/css"> and </style>
How do I set the default date format?
aspDateSelector supports US and EN date formats. By default aspDateSelector uses US format (mm/dd/yyyy). You can send a name value pair to date.asp from your link to change to EN format (dd/mm/yyyy).
example:
Can I use a mouseover to call the calendar?
Yes. Change the "onClick" command within your link to "onMouseOver"
How do I set the location where the calender will popup?
Change the "left" and "top" values of your link to whatever you want. These values represent the number of pixels from the left or top. If you want the window to open in the top left, set left to 0 and top to 0. All of the forms on this page are set to left=400,top=300. This opens the calendar in the center of the screen.
Example: left=0,top=0
How do I change
the date to
fulldatetime
format?
You can add a
name / value
pair to the
querystring of
your link that
will set the
date format to
vb formatdatetime.
Example:
fulldate=1
|