HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📌
hkob's Notion
/
ℹ️
逆引きFormula 2.0
/
📓
dateBetween
📓

dateBetween

Formula 2.0
関数形式の文法(演算子も含む)
dateBetween(date1, date2, unit)
メソッド形式の文法
date1.dateBetween(date2, unit)
演算子形式の文法
入力の型
Date
String
formula解説
https://hkob.hatenablog.com/entry/2024/06/07/050000
返り値の型
Number
作成日時
Sep 6, 2023 08:26 PM
逆引き Formula 利用例
📅
今月末までの日数を得るには?
説明
2つの日付の差をミリ秒単位で計算します。最後の引数は、"years"、"quarters"、"months"、"weeks"、"days"、"hours"、"minutes" のいずれかの単位を指定します。
注記 (変更点)
Name
func
method
date1
date2
unit
minutes
Jan 1, 2022
minutes
hours
Jan 1, 2022
hours
days
Jan 1, 2022
days
weeks
Jan 1, 2022
weeks
months
Jan 1, 2022
months
quarters
Jan 1, 2022
quarters
years
Jan 1, 2022
years