improvement setDate