Retrieves the current button's date.
Call this function to retrieve the current button's date. Time fields of date parameter should be ignored.