A 3-year-old South Carolina boy has died several days after being locked in a hot car for a time.

Officials said Logan Cox, of Lancaster County, died Sunday morning at Carolinas Medical Center in Charlotte, N.C.

Lancaster County Coroner Mike Morris said the North Carolina Medical Examiner's Office in Charlotte has not determined the cause of the boy's death.

The Lancaster County sheriff's office said Logan suffered severe heat stroke last Wednesday after he climbed into a car at the family's home in Buford and became trapped.

Deputies said it appeared the boy left the home without his mother's knowledge. Authorities don't know how long the boy had been in the car before he was found.

The Associated Press contributed to this report.