The time value is rounded off, and only the date value is presented by this method. Any locale specific character encoding is performed as necessary. If the implementation is particularly well endowed with internationalization code, this is an opportunity to reorganize the order of the day, month and year components and also to substitute leading zeros if necessary. The month names may also be spelled differently.
Prev | Home | Next |
Date.toGMTString() | Up | Date.toLocaleString() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |