The same what you have worked out is my need but i'm getting the following error Error in `$<-.data.frame`(`*tmp*`, "date", value = list(sec = c(0, 0, : replacement has 9 rows, data has 14 Please help me in this -- View this message in context: http://www.nabble.com/Datetime-conversion-tp25503138p25506705.html Sent from the R help mailing list archive at Nabble.com.