Handling date and time fields for classification task

I'm working on a classification task(The dataset is 400,000 rows and 30 columns) and one of my features was date-time. I've extracted the month, day of the week, and hour from the dataset (year is a single value and I don't think minutes will have much influence). Since they're now categorical variables how do I deal with them? Should I leave them as a single row or use one-hot encoding or go for target encoding?

Topic categorical-encoding time classification categorical-data

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.