By default DateTime type in C# gave time in AM/PM format, but I would like to return 24 hrs time format and same time I want to return this DateTime type instead of string like below,

```
  DateTime localTime = DateTime.Now;
        string timeString24Hour = localTime.ToString("dd-MM-yyyy HH:mm:ss", CultureInfo.InvariantCulture) ;

```

**instead of "string timeString24Hour" I want "DateTime timeString24Hour"** 

How to achieve this???