DateUtils: Trim userProvidedYear to remove whitespace before parsing
Certain locales such as Slovenian have a space in their date, which gets carried over onto userProvidedYear. If this space isn't removed, it ruins the parsing.
Should be backported to 23.08 as well
Edited by Joshua Goins