Q:

print date object as an object instead of the overwritten tostring method

How can I print in the console a Date as an object instead of a string?
I tryed the Object.toString(MyDate); command but this didn't work.
I need this because I extended my Date Object with prototype and want to see the object to look if it correct.

A:

Sounds like you're looking for console.dir(MyDate);
https://developer.mozilla.org/en-US/docs/Web/API/Console.dir
Displays an interactive list of the properties of the specified JavaScript object.
The output is presented as a hierarchical listing with disclosure triangles that
let you see the contents of child objects.

