Added date to patch functionality