LPS-46770 Creating util method for constructing dates from liferay-ui:input-date/time submitted inputs