how to only get the date in c# code example Example: c# get date DateTime.Now.ToString("dd/MM/yyyy");