Fixed #18767 -- Fixed Admin calendar for other locales than English

Refactored openCalendar function from DateTimeShortcuts.js. Now, when
entered manually in the input field, the date will show up correctly on
the calendar for locales that don't use "-" for separator.
seems like this doesn't need to be a variable as it's only used once