DateTimeOffset As Minutes - CSharp System

CSharp examples for System:DateTime Minute

Description

DateTimeOffset As Minutes

Demo Code


using System;/*w w  w . j  ava 2  s .  co m*/

public class Main{
        public static DateTimeOffset AsMinutes(this DateTimeOffset self)
        {
            return new DateTimeOffset(self.Year, self.Month, self.Day, self.Hour, self.Minute, 0, 0, self.Offset);
        }
}

Related Tutorials