convert to date


For our monitoring I would like to know, since how many days the last check is ago. From a report I get the following data as CSV:
Host_A,Jul 23, 2019, 02:21:29 AM
Host_B,Jul 9, 2019, 02:23:30 AM
Host_C,Jul 23, 2019, 02:21:29 AM

How can I convert this format (Jul 23, 2019) to a date, to determine the difference to today?


(New-TimeSpan -Start ([DateTime]'Jul 23, 2019') -End (Get-Date)).Days

Many thanks.

That’s working perfect.