none
Determine the number of days from now until an event in the future RRS feed

  • Question

  • Is it possible to use the clock function and a simple subtract statement to determine the number of days from NOW until an event in the FUTURE? 

    Could create a countdown timer to show off some cool graphics or something when the birthday, anniversary, wedding, graduation...etc finally occurs!

    Wednesday, August 21, 2019 8:01 PM

Answers

  • Hi,

    Not really with the available Clock methods, since they all based on the current time/date.  Any future date arithmetic you will have to calculate yourself; days in a month, leap year etc.

    If you fancy using a Small Basic extension, there is a method LDDateTime in LitDev extension that was designed to the type of date and time arithemic you describe, and possibly other things that may be useful.

    Wednesday, August 21, 2019 10:02 PM
    Moderator