0
DateTime.Now.ToString("DD.MMM.YYYY.HH.MM.SS")

Using the above formatting to get the current date and time as per the above format. But it's resulting

DD.Sep.YYYY.15.09.SS
Sixthsense
  • 1,927
  • 2
  • 16
  • 38

1 Answers1

0

Use This it will definetly work as per your expecting output

string h = DateTime.Now.ToString("dd.MMM.yyyy.HH.MM.ss");
PRATEEK GHOSH
  • 243
  • 1
  • 15