Код: Выделить всё
public static String GetTimestamp(DateTime value)
{
return value.ToString("yyyyMMddHHmmssffff");
}
// ...later on in the code
String timeStamp = GetTimestamp(new DateTime());
Console.WriteLine(timeStamp);
Код: Выделить всё
000101010000000000
Код: Выделить всё
20140112180244
Подробнее здесь: https://stackoverflow.com/questions/212 ... in-c-sharp
Мобильная версия