Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
DateTime not displaying properly - Parking fee Console app
Mohan S
Nov 9 2015 3:32 AM
384
Reply
Hi Guys,
Though i can find many examples related to Parking fee code, i dint find a code the way am trying below.
Am posting initial code here:
Though i give the correct input, i dint get the expected output here.
Input:
2015/11/09 01:30:15
Output:
01/01/0001 01:15:30 AM
The Date and Time is wrong, and how to handle AM and PM ?
Console.WriteLine("Please enter list of cities");
String input1 = Console.ReadLine();
DateTime dt1;
bool res1 = DateTime.TryParseExact(input1, "yyyy/MM/dd hh:mm:ss", null, System.Globalization.DateTimeStyles.None, out dt1);
Console.WriteLine(dt1);
Console.ReadLine();
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
how to do english to hindi dictonary offine
read the data from an access request