I have a date in the ISO format YYYY-MM-DDTHH:SS (e.g. 2014-02-14T12:30). I\'d like to convert it in seconds since epoch using only the date command in linux bash.
A
With GNU date, specify the date to parse with -d and seconds since epoch with %s
-d
%s
$ date -d"2014-02-14T12:30" +%s 1392381000