Skip to content
Prev 388575 / 398530 Next

Help with Converting Excel Times to R

Hi Shawn,
I don't have any trouble with this:

times<-c("7/20/21 13:30","7/20/21 13:40")
strptime(times,"%m/%d/%y %H:%M",tz="GMT")
[1] "2021-07-20 13:30:00 GMT" "2021-07-20 13:40:00 GMT"

I suspect that Excel is causing the problem. Try changing the format
of the date column to "Text" and work on the character representation
of the dates.

Jim
On Thu, Jul 22, 2021 at 8:49 AM Shawn Way <sway at empowerpharmacy.com> wrote:
Message-ID: <CA+8X3fUr19-5x0Uz4drLUi9LzbyiM5WBkCwY5m-BqS51G7b87A@mail.gmail.com>
In-Reply-To: <SA1PR13MB4878B99FF67737AB8EC3B411C3E39@SA1PR13MB4878.namprd13.prod.outlook.com>