Basic HTML version of Foils prepared 16 June 98

Foil 46 Date Methods

From Overview of Advanced JavaScript -- Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 98. by Tom Scavo,Geoffrey C. Fox

Date Methods for Foil 46
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 Sun Nov 29 1998