Small JavaScript DateTimeTools object

So I got the project working on a tv schedule at work. As you can imagine there is work that needs to be done with dates and times when moving forward / back in the schedule. I found a few things out there that were full blown date/time js libraries, but they were [...]

Ever need to iterate though all the members of an object (javascript)?

You know you have… if you are like me though, you can never remember the exact syntax. Here it is:

for (var name in object)
{
if (object.hasOwnProperty(name))
{
alert(name + ‘: ‘ + object[name]);
}
}