You will have to change the server configuration with respect to the date / time format.
To make it simpler, I recommend changing in the presentation layer.
If you're doing web development, go to the momentJS
library.
moment().format('MMMM Do YYYY, h:mm:ss a'); // October 12th 2018, 10:27:00 am
moment().format('dddd'); // Friday
moment().format("MMM Do YY"); // Oct 12th 18
moment().format('YYYY [escaped] YYYY'); // 2018 escaped 2018
moment().format(); // 2018-10-12T10:27:00-07:00
If you're with C #
// Display using current (en-us) culture's short date format
DateTime thisDate = new DateTime(2008, 3, 15);
Console.WriteLine(thisDate.ToString("d")); // Displays 3/15/2008
Here you can find more details:
link