update using date instead timestamp