Parse string to date and have difference between 2 dates

So how can I do ?