get day month year from date c#

C#
// can add : or / to seperate dates and time
DateTime.Now.ToString("yyyyMMddhhmmss")
Source

Also in C#: