soamazing soamazing - 11 days ago 6
C# Question

convert minutes to date and time c#

I have this minutes number 2400.
I need convert 2400 minutes to exact date

Like this 2400 minutes equal ==> 2012-12-17 04:00:00

Answer

I'm guessing you look for this:

        int minutes = 2400;
        var dt = DateTime.Now.Date.AddMinutes(minutes);