Handling dates using POSIXct or POSIXlt