Replies: 1 comment
-
use const date1 = DateTime.fromISO("2022-04-23")
const date2 = DateTime.now().startOf("day") // it's the 21st today
date1.diff(date2, "days").days //=> 2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, please, is there any way how to count days?
I need to count how many days are between these 2.
Does anyone know?
Or any working solution on how to compare 2 days and get a number of days between them?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions