I want to convert \"2013-09-16\" into unix time.
I found Convert UNIX epoch to Date object in R but I need to do the reverse of that.
Thanks!
Simply cast to numeric:
as.numeric(as.POSIXct("2013-09-06", format="%Y-%m-%d")) # [1] 1378418400
Quite simple:
as.numeric(as.POSIXct("2013-09-16 2:13:46 EST"))