public static string GetTime(string testTime, int timeFormat)
{
//string result = "";
switch (timeFormat)
{
case 1:
return DateTime.Now.ToLongTimeString();
case 2:
return (DateTime.Now).ToString("hh:mm:ss");
default: return "";
}
}
{
//string result = "";
switch (timeFormat)
{
case 1:
return DateTime.Now.ToLongTimeString();
case 2:
return (DateTime.Now).ToString("hh:mm:ss");
default: return "";
}
}
No comments:
Post a Comment