I have this Java code that allows the input of a string of that particular format and converts it to Unix time (a long
type).
string input = "2014-03-08T01:00:00-08:00";
Calendar cal = Calendar.getInstance();
SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX");
(long) dateParser.parse(input.getTime())/1000
I was wondering is there an equivalent to this in C# that follows the same parameters?