hello
public static string GetCurrentTime(string name)
{
return "Hello " + name + Environment.NewLine + "The Current Time is: " + DateTime.Now.ToString();
}
this is my coding when i use in this format its give me error
public static string GetCurrentTime()
{
DateTime.Now.ToLongTimeString();
}
Error 1 'WebApplication19.WebForm1.GetCurrentTime()': not all code paths return a value
can u explain me why ?
thanks in advance
Go to the complete details ...