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
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
Use This it will definetly work as per your expecting output
string h = DateTime.Now.ToString("dd.MMM.yyyy.HH.MM.ss");