將當前時間轉換為指定格式的DateTime型別DateTime dt=DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd")); //將當前日期減一天dt.
確定! 回上一頁