Unityで日付

日付1日足して表示

 

	DateTime dt;
	public Text niti1;
	public Text niti2;
	// Use this for initialization
	void Start () {

		//今日の日付を取得
		dt = System.DateTime.Now;

		niti1.text  = System.DateTime.Now.Month.ToString() + "月" + System.DateTime.Now.Day.ToString () + "日";

		TimeSpan ts = new TimeSpan(1, 00, 00, 00);
		dt = dt + ts;
		niti2.text  = System.DateTime.Now.Month.ToString() + "月" + System.DateTime.Now.Day.ToString () + "日";
}