New shorter solution
Since Pandas 2.0.0 there is a direct way to import dates with specific formats using parse_dates to specify the date-columns and date_format to specify the format.
Example csv
Based on your import I created the example file test.csv with the following content:
datetime float_col int_col 2023-09-14-15-00-00 13.2 7 2023-09-14-15-12-03 13.4 8
Direct one-line-solution - Import statement:
df = pd.read_csv('test.csv', sep=' ', parse_dates = [0], date_format = '%Y-%m-%d-%H-%M-%S')
Import result:

Resulting dtypes:
datetime datetime64[ns] float_col float64 int_col int64
Explanation
parse_dates is a list of column positions with dates. Since the date column is at the 1st position. It is the position 0. For date_format the usual Python format definitions are used.