I'm revising some legacy code and there is this...

```
DateTime dateTime = DateTime.Now;

DateTime from = DateTime.Parse(dateTime.ToString("dd/MM/yyyy 00:00:00"));
DateTime to = DateTime.Parse(dateTime.AddDays(8).ToString("dd/MM/yyyy 23:59:59"));

```

The from and to variables are then used in Linq / Lambda comparisons, so must be a DateTime.

I can't seem to find a way to format a DateTime variable without converting it to a string, and then back to a DateTime, this seems daft to say the least.

Surely there must be a way to format a DateTime without converting it to a string and then back to a DateTime?