日期:2014-05-17 浏览次数:21123 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
DateTime dt = DateTime.Now;
dt = new DateTime(dt.Year, 2, dt.Day, dt.Hour, dt.Minute, dt.Second, 1);
Console.WriteLine(dt.ToString("yyyy-MM-dd hh:mm:ss.fff"));
}
}
}
public DateTime Date { get; }
//
// Summary:
// Gets the day of the month represented by this instance.
//
// Returns:
// The day component, expressed as a value between 1 and 31.
public int Day { get; }
//
// Summary:
// Gets the day of the week represented by this instance.
//
// Returns:
// A System.DayOfWeek enumerated constant that indicates the day of the week
// of this System.DateTime value.
public DayOfWeek DayOfWeek { get; }
//
// Summary:
//