rename ParseDate -> dateParamToEpoch

Plus a few style cleanups
extract time.Now for testing