Trim Ticks - CSharp System

CSharp examples for System:DateTime Timestamp

Description

Trim Ticks

Demo Code


using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from w w w . j  a  v a 2 s .  c  o  m

public class Main{
        public static DateTime TrimTicks(this DateTime self) {
         return new DateTime(self.Year, self.Month, self.Day, self.Hour, self.Minute, self.Second, self.Millisecond, self.Kind);
      }
}

Related Tutorials