I currently have dates stored as a factor in this format: `"01_03_2018 08-30-09"`

I am looking to strip each component out as a numeric value (in R code). 

so the date above would be

```
day = 1
month = 3
year = 2018
hour = 8
minutes = 30
seconds = 9

```

Note: All these values need to be in numerical format.

Any help is appreciated.