It's about time.
We could use type attribute to indicate the expected type. E.g. type="localDate", type="localTime", type="localDateTime", type="zonedDateTime", etc. And in case of <fmt:parseDate>, the type of the instance behind the var should depend on type attribute as well.