September 2003
Intermediate to advanced
944 pages
33h 46m
English
Without doubt, another popular use of the date object is to generate a calendar. Since we know how to get the year, month, and date from a date object, to generate a calendar is just a formatting process. Our first aim here is to generate the current month calendar to a page. Consider the following example code ex12-18.htm:
1: <?xml version="1.0" encoding="iso-8859–1"?> 2: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 5: <head><title>A Month Calendar -- ex12–18.htm</title></head> ... |
Read now
Unlock full access