One of the columns of my data frame have DateTime and some string characters together. LIke:

```
"<13>1 2018-04-18T10:29:00.581243+10:00 KOI-QWE-HUJ vmon 2318 - -  Some Description..."

```

I wish to extract only the DateTime part from it so that I have something like this: 

"`2018-04-18 10:29:00.581243"`

I have tried the below:

`as.Date(strptime("<13>1 2018-04-18T10:29:00.581243+10:00 KOI-QWE-HUJ vmon 2318 - - Some Description...", "Date: %Y-%m-%d"))`
But, this returns NA.

Can anyone please rectify this for me. Thanks in advance.

**EDIT:**
I tried the below to get the Date and Time separately. This works but I need to get them together in a column:

To extract Date:
----------------

```
as.Date(str_extract(x, "[0-9]{4}-[0-9]{2}-[0-9]{2}"), format="%Y-%m-%d")
> [1] "2018-04-18"

```

To extract Time:
----------------

```
str_extract(x, "[0-9]{2}:[0-9]{2}:[0-9]{2}")
> [1] "10:29:00"

```