Get Date from ticks - CSharp System

CSharp examples for System:DateTime Timestamp

Description

Get Date from ticks

Demo Code


using System;/*  w w w  .  j a va  2  s.  c  o m*/

public class Main{
        public static string GetDate(long ticks) => new DateTime(ticks).ToString("yyyy-MM-dd");
}

Related Tutorials