soamazing soamazing - 1 year ago 117
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 Source

I'm guessing you look for this:

        int minutes = 2400;
        var dt = DateTime.Now.Date.AddMinutes(minutes);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download