I want to get the current datetime in MM/dd/YYYY hh:mm:ss tt format .The system time may in whatever the format.
Using Datetime.Now the time format may found.
- String timeformat= DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss tt");
But I want to convert this string to datetime variable with change in format.
- DateTime timeformat1= Convert.ToDateTime(timeformat);
Please help me to solve this.
or else I want to get the Datetime in MM/dd/YYYY HH:mm:ss tt format.
Help me to solve this.
Amit GuptaRank #190 · 12.8K reputationPosted Aug 31, 2017, 9:50 PM EDT
Ankit SharmaRank #141 · 16.1K reputationPosted Sep 1, 2017, 12:20 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Aug 31, 2017, 9:36 PM EDT
Dinesh SanthalingamRank #2,085 · 690 reputationPosted Aug 31, 2017, 9:44 PM EDT
Zakir AhamedRank #1,545 · 1K reputationPosted Aug 31, 2017, 9:51 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 31, 2017, 9:56 PM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Aug 31, 2017, 10:49 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts