modDateTime 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

GetMonthDays 函數

說明

取得目標月份的日數

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
vYear 長整數 4 必須 (無) 輸入目標年之西元年份
vMonth 長整數 4 必須 (無) 輸入目標年之月份

傳回值

取得目標月份的日數

範例

Program Main

	Use modDateTime

	Integer :: vYear, vMonth, vDay

	Write(*,*) GetMonthDays(2000, 2) ' 傳回 29 天

End Program

基本條件

Microsoft PowerStation 4.0 以後版本 | DateTime.f90

請參閱

modDateTime 函式庫 | DateAdd