Turns out that Javascript date pasing is more trouble than it is worth.