I am using DataGridView in WinForms,
i am using the sql server database
and I am using the smalldatetime as datatype, but it is accepting the date as mm/dd/yyyy HH:MM:ss AM.
How to save that in:
dd/mm/yyyy HH:MM AM format
i am little bit confused here how to change the format as by the designer the specified dd/mm/yyyy format is not available
Use following code:
By using culture info you can set different format…