SyntaxFix
Write A Post
Hire A Developer
Questions
Method to get system Date and time in a single string
public static string GetTimeDate() { string DateTime = System.DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss"); return DateTime; } sample OUTPUT :-16-03-2015 07:45:15