I had no problems in OS X 10.8.4:
$ date -j -f '%d-%b-%Y' "22-Aug-2013" "+%s" 1377223888 $ date -j -f '%s' 1377223888 Thu Aug 22 21:11:28 CDT 2013
Please note that it takes the current time and includes it with the specified date. It would be more accurate to indicate the time:
$ date -j -f '%d-%b-%Y %T' "22-Aug-2013 00:00:00" "+%s" 1377147600 $ date -j -f '%s' 1377147600 Thu Aug 22 00:00:00 CDT 2013
source share