datetime format in c# dd-mm-yyyy hh-mm-ss am code example
Example: c# datetime dd/mm/yyy hh:mm:ss
DateTime.Now.ToString("dd'/'MM'/'yyyy HH:mm:ss")
//output: 13/06/2020 13:05:21
DateTime.Now.ToString("dd'/'MM'/'yyyy HH:mm:ss")
//output: 13/06/2020 13:05:21