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.
Ankit SharmaPosted Sep 1, 2017, 4:20 AM
Rajkiran SwainPosted Sep 1, 2017, 2:49 AM
Midhun TpPosted Sep 1, 2017, 1:56 AM
Zakir AhamedPosted Sep 1, 2017, 1:51 AM
Amit GuptaPosted Sep 1, 2017, 1:50 AM
Dinesh SanthalingamPosted Sep 1, 2017, 1:44 AM
Amit GuptaPosted Sep 1, 2017, 1:36 AM