To Time Stamp - CSharp System

CSharp examples for System:DateTime Timestamp

Description

To Time Stamp

Demo Code


using System.Globalization;
using System.Web;
using System.Linq;
using System.Collections.Generic;
using System;/*from   www  .  j  ava  2  s.  c om*/

public class Main{
        public static string ToTimeStamp()
    {
        return DateTime.Now.ToString("yyyyMMddHHmmss");
    }
}

Related Tutorials