Datepicker: Don't use .zIndex(); implement the logic locally.
Core: Deprecated .zIndex(). Fixes #9061 - Core: Deprecate .zIndex().