Archive for March, 2008

Correct for 2-digit date entry in Javascript

March 27th, 2008

In working with the function described in the last post, I realized that I needed some way to correct the year when a user entered a 2-digit year as opposed to a 4-digit year. This is because Javascript interprets ‘3/1/09′ as ‘March 1, 1909′ — throwing off my calculations quite alarmingly. There are [...]

Get the difference between two dates with Javascript

March 25th, 2008

This is nothing earthshaking; in fact, it’s almost a complete rip off of another blog post, where I initially found what I needed. But I thought I’d put it here, so it would be easier for me to find it again when I need it again:-)
function daysDiff(dayStart, daySubtract)
{
//if either date is empty, return empty string
if [...]

Reporting Services – Report Manager won’t work after renaming web server

March 5th, 2008

It took me a while to find out where I had to make a change when one of our clients changed the name of their web server. The error message I got when I tried to browse the Report Manager from IIS said “The remote name could not be resolved:” and displayed the old [...]