I’m learning actual JavaScript now, since I have been using jQuery as a crutch (a very good one I might add), but I really didn’t know how real JavaScript worked. IE, prototypes, objects, etc…
So as my first project in JavaScript I ported the php date(); function over!
If included it here: http://www.x24d.com/blog/free/JavaScript_Project.zip
I will update it later to include some other date functions but this is a good start right!?
The only documentation is….
var date = new Date();
var getDate = date.phpDate();
document.write(getDate);
Arguments can be passed like the php Date:
date.phpDate(”all of those little letters”, timestamp);
or object:
date.phpDate({format:”those little letters again”, timestamp: timestamp});
you can get all those littler modifier letters from here: http://us2.php.net/date











