Answers for "get current date only in c#"

C#
4

c# get date

DateTime.Now.ToString("dd/MM/yyyy");
Posted by: Guest on March-16-2021
4

c# datetime current

DateTime now = DateTime.Now;
string strDate = now.ToString("YYYY-MM-dd");
Posted by: Guest on January-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language