Changed Date to setDate to prevent js syntax conflict