DateTimeExtendGetFirstDayOfMonth Method
取得當月第1天
Namespace: eBizprise.FrameworkAssembly: eBizprise.Framework.DatetimeHelper (in eBizprise.Framework.DatetimeHelper.dll) Version: 26.0.0.0+8b857ad8115790502a00f482082d0feffe7e9c92
public static DateTime GetFirstDayOfMonth(
this DateTime dateTime
)
- dateTime DateTime
- DateTime擴充屬性
DateTimeDateTimeIn Visual Basic and C#, you can call this method as an instance method on any object of type
DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
取來源日期時間同月份的第1天
DateTime firstDateOfMonth = DateTime.Now.GetFirstDayOfMonth();
| Date | Version | Description |
|---|
| 2020/02/07 | 1.0.0.0 | 初版 |
| 2025/09/19 | 25.0.0.0 | 彙整2025年度初版 |