Get Time Stamp - CSharp System

CSharp examples for System:DateTime Timestamp

Description

Get Time Stamp

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/*from w ww . j  av  a2s .  com*/

public class Main{
        public static string GetTimeStamp(this DateTime value)
        {
            return value.ToString("yyyyMMddHHmmssfff");
        }
}

Related Tutorials