I want to accept a Date format according to an ISO (can’t remember which one)…
2009-09-17T13:03:00
How do I do this? I’m currently using a SimpleDateFormat but when I run my unit test against it, it fails.
DateFormat df = SimpleDateFormat("yyyy-MM-ddTHH:mm:ss");
Unit Test is passing it this string:
String test1 = "2009-09-17T13:07:01";
The SimpleDateFormat parameter should be “yyyy-MM-dd’T’HH:mm:ss”.
Regards.