Basic HTML version of Foils prepared 3 March 99

Foil 54 Date Methods

From Overview of JavaScript I -- Basic Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 99. by Geoffrey C. Fox (Tom Scavo)

Date Methods for Foil 54
1 The Date object has no properties; access to date and time fields is via dozens of "set" and "get" methods: xmas.setYear(xmas.getYear()+1);
2 There are two "static" Date methods:
  • Date.parse( date_string )
  • Date.UTC( year, month, day )
3 Both convert their argument(s) to milliseconds past January 1, 1970 UTC

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Mar 3 1999