Answers for "datetime format asp net core yyyy-mm-dd hh mm ss"

C#
0

Format DateTime.Now to yyyy-mm-dd c#

var dateString1 = DateTime.Now.ToString("yyyyMMdd");
    var dateString2 = DateTime.Now.ToString("yyyy-MM-dd");

    Console.WriteLine("yyyyMMdd " + dateString1);
    Console.WriteLine("yyyy-MM-dd "+ dateString2);
Posted by: Guest on June-29-2021
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

Code answers related to "datetime format asp net core yyyy-mm-dd hh mm ss"

C# Answers by Framework

Browse Popular Code Answers by Language