DateTimeExten extension
- on
Methods
-
copy(
{bool isUtc = false}) → DateTime -
Available on DateTime?, provided by the DateTimeExten extension
复制日期 -
format(
{DateFormat dateFormat = DateFormat.defValue}) → String -
Available on DateTime?, provided by the DateTimeExten extension
日期 format 转换格式 -
formatF(
String format) → String -
Available on DateTime?, provided by the DateTimeExten extension
日期 format 转换格式,自定义转换格式 -
getDayOfYear(
) → int -
Available on DateTime?, provided by the DateTimeExten extension
在今年的第几天. -
getWeekday(
{bool isChina = true}) → String -
Available on DateTime?, provided by the DateTimeExten extension
获取dateTime是星期几 支持中英文 -
isSameDay(
DateTime d2) → bool -
Available on DateTime?, provided by the DateTimeExten extension
判断是否是同一天