Using C = system. console ;... static void main () {datetime = datetime. now; C. writeline ("d = {0: d}", datetime); // mm/DD/yyyy c. writeline ("d = {0: d}", datetime); // month DD, yyyy C. writeline ("F = {0: f}", datetime); // day, month DD, yyyy hh: mm c. writeline ("F = {0: f}", datetime); // day, month DD, yyyy hh: mm: ss am/pm c. writeline ("G = {0: g}", datetime); // mm/DD/YYYY hh: mm c. writeline ("G = {0: g}", datetime); // mm/DD/YYYY hh: mm: ss c. writeline ("m = {0: m}", datetime); // month dd C. writeline ("r = {0: R}", datetime); // DDD month yyyy hh: mm: ss gmt c. writeline ("s = {0: s}", datetime); // yyyy-mm-dd hh: mm: SS (sortable) C. writeline ("t = {0: t}", datetime); // hh: Mm AM/pm c. writeline ("t = {0: t}", datetime); // hh: mm: ss am/PM // yyyy-mm-dd hh: mm: SS (sortable) c. writeline ("u = {0: u}", datetime); // day, month DD, yyyy hh: mm: ss am/pm c. writeline ("u = {0: u}", datetime); // month, YYYY (March, 2006) C. writeline ("Y = {0: y}", datetime); C. writeline ("month =" + datetime. month); // month number (3) // day of week name (Friday) C. writeline ("day of week =" + datetime. dayofweek); // 24 hour time (16:12:11) C. writeline ("time of day =" + datetime. timeofday); // (632769991310000000) C. writeline ("datetime. ticks = "+ datetime. ticks); // ticks are the number of 100 nanosecond intervals since 01/01/0001 am // ticks are useful in elapsed time measurement .}