dateTime dt = dateTime.now;
//label1.text = dt.tostring (); // 2005-11-5 13:21:25
//label2.text = dt.tofiletime (). toString (); // 127756416859912816
//label3.text = dt.tofileTimeUtc (). toString (); // 127756704859912816
//label4.text = dt.tolocaltime (). toString (); // 2005-11-5 21:21:25
//label5.text = dt.tolongdatestring (). toString (); // 2005 年 11月 5 日
//label6.text = dt.tolongtimeString (). toString (); // 13:21:25
//label7.text = dt.tooadate (). toString (); // 38661.5565508218
//label8.text = dt.toshortDatestring (). toString (); // 2005-11-5
//label9.text = dt.ToShortTimeString (). toString (); // 13:21
//label10.text = dt.touniversaltime (). tostring (); // 2005-11-5 5:21:25
// 2005-11-5 13 : 30 : 28.4412864
//label1.text = dt.year.tostring (); // 2005
//label2.text = dt.date.tostring (); // 2005-11-5 0:00:00
//label3.text = dt.dayofweek.tostring (); // 토요일
//label4.text = dt.dayofyear.toString (); // 309
//label5.text = dt.hour.tostring (); // 13
//label6.text = dt.millisecond.tostring (); // 441
//label7.text = dt.minute.tostring (); // 30
//label8.text = dt.month.tostring (); // 11
//label9.text = dt.second.toString (); // 28
//label10.text = dt.ticks.toString (); // 63267942284412864
//label11.text = dt.timeofday.tostring (); // 13 : 30 : 28.4412864
//label1.text = dt.tostring (); // 2005-11-5 13:47:04
//label2.text = dt.addyears (1) .tostring (); // 2006-11-5 13:47:04
//label3.text = dt.adddays (1.1) .toString (); // 2005-11-6 16:11:04
//label4.text = dt.addhours (1.1) .tostring (); // 2005-11-5 14:53:04
//label5.text = dt.addmilliseconds (1.1) .tostring (); // 2005-11-5 13:47:04
//label6.text = dt.addmonths (1) .tostring (); // 2005-12-5 13:47:04
//label7.text = dt.addseconds (1.1) .tostring (); // 2005-11-5 13:47:05
//label8.text = dt.addminutes (1.1) .tostring (); // 2005-11-5 13:48:10
//label9.text = dt.addticks (1000) .tostring (); // 2005-11-5 13:47:04
//label10.text = dt.compareto (dt) .toString (); // 0
///label11.text = dt.add (?). tostring (); // 问号为一个时间段
//label1.text = dt.equals ( "2005-11-6 16:11:04"). toString (); // false
//label2.text = dt.equals (dt) .toString (); // true
//label3.text = dt.gethashCode (). toString (); // 1474088234
//label4.text = dt.gettype (). toString (); // system.datetime
//label5.text = dt.gettypecode (). toString (); // datetime
//label1.text = dt.getDateTimeformats ( 's') [0] .toString (); // 2005-11-05t14 : 06 : 25
//label2.text = dt.getDateTimeformats ( 't') [0] .toString (); // 14:06
//label3.text = dt.getDateTimeformats ( 'y') [0] .toString (); // 2005 年 11月
//label4.text = dt.getDateTimeformats ( 'd') [0] .toString (); // 2005 年 11月 5 日
//label5.text = dt.getDateTimeformats ( 'd') [1] .toString (); // 2005 11 05
//label6.text = dt.getDateTimeformats ( 'd') [2] .toString (); // 星期六 2005 11 05
//label7.text = dt.getDateTimeformats ( 'd') [3] .toString (); // 星期六 2005 年 11月 5 日
//label8.text = dt.getDateTimeFormats ( 'm') [0] .TOSTRING (); // 11月 5 日
//label9.text = dt.getDateTimeformats ( 'f') [0] .toString (); // 2005 年 11月 5 日 14:06
//label10.text = dt.getDateTimeformats ( 'g') [0] .toString (); // 2005-11-5 14:06
//label11.text = dt.getDateTimeformats ( 'r') [0] .toString (); // 2005 년 11 월 5 일 14:06:25 GMT
label1.text = string.format ( "{0 : d}", dt); // 2005-11-5
label2.text = string.format ( "{0 : d}", dt); // 2005 年 11月 5 日
label3.text = string.format ( "{0 : f}", dt); // 2005 年 11月 5 日 14:23
label4.text = string.format ( "{0 : f}", dt); // 2005 年 11月 5 日 14:23:23
label5.text = string.format ( "{0 : g}", dt); // 2005-11-5 14:23
label6.text = string.format ( "{0 : g}", dt); // 2005-11-5 14:23:23
label7.text = string.format ( "{0 : m}", dt); // 11月 5 日
label8.text = string.format ( "{0 : r}", dt); // sat, 2005 년 11 월 5 일 14:23:23 Gmt
label9.text = string.format ( "{0 : s}", dt); // 2005-11-05t14 : 23 : 23
label10.text = string.format ( "{0 : t}", dt); // 14:23
label11.text = string.format ( "{0 : t}", dt); // 14:23:23
label12.text = string.format ( "{0 : u}", dt); // 2005-11-05 14 : 23 : 23Z
label13.text = string.format ( "{0 : u}", dt); // 2005 年 11月 5 日 6:23:23
label14.text = string.format ( "{0 : y}", dt); // 2005 年 11月
label15.text = string.format ( "{0}", dt); // 2005-11-5 14:23:23
label16.text = string.format ( "{0 : yyyymmddhhmmssffff}", dt);