I have a string representing a date. It's format is MM/DD/YYYY
.
I need to submit it via API to a service that requires MMDDYYYY
.
Should I bother with overloading this string onto some date class and 'export' as MMDDYYY
or just delete the "/" sub-string wherever I find it?
Any other neat way of doing that I wasn't aware of?