Get Date Time Of Minutes - CSharp System

CSharp examples for System:DateTime Minute

Description

Get Date Time Of Minutes

Demo Code


using System.Globalization;
using System.Text.RegularExpressions;
using System.Web;
using System.Linq;
using System.Collections.Generic;
using System;/* w  ww. j  a  va  2 s . c om*/

            public static string GetDateTimeOfMinutes(int relativeday)
            {
                return DateTime.Now.AddMinutes(relativeday).ToString("yyyy-MM-dd HH:mm:ss");
            }
}

Related Tutorials