Set date functionality now works