Answers for "datetime format in c# dd-mm-yyyy hh-mm-ss"

C#
0

c# datetime dd/mm/yyy hh:mm:ss

DateTime.Now.ToString("dd'/'MM'/'yyyy HH:mm:ss")
 //output: 13/06/2020 13:05:21
Posted by: Guest on June-13-2020
0

c# date string format yyyy-mm-dd

public static string FORMAT_PDF = "dd/MM/yyyy";
public static string convertDateTimeFormatByStrDate(string strDate,string format)
{
	DateTime temp = Convert.ToDateTime(strDate);
	return temp.ToString(format);
}
Posted by: Guest on January-14-2021

Code answers related to "datetime format in c# dd-mm-yyyy hh-mm-ss"

C# Answers by Framework

Browse Popular Code Answers by Language