using System;
public class Program
{
public static void Main()
// DateTime dt = Convert.ToDateTime(((DataRow)objRow)["dt"].ToString("MM/dd/yyyy hh:mm:ss.fff tt"));
//Console.WriteLine(dt);
DateTime d = DateTime.Now;
string str = String.Format("{0:00}{1:00}{2:0000}{3:00}{4:00}{5:00}{6:000}", d.Month, d.Day, d.Year, d.Hour, d.Minute, d.Second, d.Millisecond);
// I got this result: "02/23/2015 16:42:38.234"
Random r = new Random();
int n = r.Next(10);
//int card = rnd.Next(999);
Console.WriteLine(n+"_"+str+"_W");
}