|
|
От: | usov | |
| Дата: | 07.01.08 16:16 | ||
| Оценка: | |||
DateTime dtOut;
string sTemplate = (((new DateTime(2008, 1, 7)).ToString()).Split(' '))[0];
while(!DateTime.TryParse(Console.ReadLine(), out dtOut))
{
Console.WriteLine("Введите дату в формате: {0}", sTemplate);
}