傳回包含指定 Date 值的特定元件之 Integer 值。 ... 您可以使用 DatePart 函式來評估日期/時間值並傳回特定的元件。例如,您可使用 DatePart 來計算星期幾或是目前的小時。
msdn.microsoft.com