Get the current date and time August 12, 2023 by Tarik use DateTime.Now try this: DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")