SyntaxFix
Write A Post
Hire A Developer
Questions
You can use following code to get the date and time separately.
DateTime now = DateTime.Now; string date = now.GetDateTimeFormats('d')[0]; string time = now.GetDateTimeFormats('t')[0];
You can also, check the MSDN for more information.