for example to get today's date in a unique format, you would use
(shown in two steps only to help understanding):
var today = new Date(); //gets the current date
today = today.formatString("DD MMM YYYY"); //formats the date as "27
July 2005"
Make sense?
~AlanH