- Project I: A Simple Date Script
- Project II: A More Powerful Date Script
- Recap
- Advanced Projects
Advanced Projects
There are numerous ways that date_fancy.asp can be modified. Some ideas include:
The days and months arrays could be set to different values. For example, the months array could be set to three-letter abbreviations ("Jan," "Feb," "Mar," ..., "Dec"). Alternatively, the language could be changed: ("Dimanche," "Lundi," "Mardi," ..., "Samedi").
Time information could be added by using the getHours ( ) and the getMinutes ( ) methods of the Date object.
The existing information could be reorganized by changing the order of the elements being concatenated into the today_date variable in line 17.