rewrite date lib, rewrite form validator