Various types rely on encoded Dates, however when they are encoded as DateFromISOString they will fail when decoding a structured object with a Date field or a timestamp number. This encoding allows either option as well as string.
Checklist
[x] I have tested these changes locally and they work as expected.
[x] I have added or updated tests to cover any new functionality or bug fixes.
[-] I have updated the documentation to reflect any changes or additions to the project.
We may find that we wish to disallow use of a timestamp in these cases, however since these encoders always encode to string, i am not worried about it just yet.
Description
Various types rely on encoded Dates, however when they are encoded as DateFromISOString they will fail when decoding a structured object with a Date field or a timestamp number. This encoding allows either option as well as string.
Checklist
Additional Information
We may find that we wish to disallow use of a timestamp in these cases, however since these encoders always encode to string, i am not worried about it just yet.