Countdown to a date

I am interested in a countdown to a date in days, mins and seconds. For example a countdown to April 5 2019 …is this possible with facer.

1 Like

Here’s a start…

DAYS LEFT FORMULA
($(247-#DD#)<0?((365-#DD#)+247):(247-#DD#)$)

Where changing 247 to whatever day of the year you’re counting down to.
IE: Today is March 29th, the 88th day of the year… to countdown to April 1st use
($(91-#DD#)<0?((365-#DD#)+91):(91-#DD#)$)
Resulting in “3”

From there just multiply by the number of seconds/minutes/etc

Depending on how you want to show the countdown (3 days OR 72 hours OR 4320 Minutes OR 259200 Seconds until 4/1/18)

DAYS LEFT SHOWN IN HOURS FORMULA
(24*(($(91-#DD#)<0?((365-#DD#)+91):(91-#DD#)$)))
Resulting in “72”

DAYS LEFT SHOWN IN MINUTESFORMULA
(60*(24*(($(91-#DD#)<0?((365-#DD#)+91):(91-#DD#)$))))
Resulting in “4320”

DAYS LEFT SHOWN IN SECONDS FORMULA
(60*(60*(24*(($(91-#DD#)<0?((365-#DD#)+91):(91-#DD#)$)))))
Resulting in “259200”

As far as counting from the current time, it’s possible but I’m new to this too, so it’s a start. It seems possible but I don’t know the exact tags to use. There’s also the matter of factoring in leap years if that matters to you.

Try something like this?
((12-#Dh#)*(($(91-#DD#)<0?((365-#DD#)+91):(91-#DD#)$)))
(12-#Dh#) being the number of hours left in the day, I think.

Good luck!

EDIT:
Just realized you list 2019… I’d imagine you set up a check to see if “future year” (ie: 2019) is the same as current year, then multiply by the appropriate number (seconds in a year, minutes in a year, etc)

1 year = 365 days
1 year = 8760 hours
1 year = 525600 minutes
1 year = 3.154e+7 seconds

Thanks, that’s great. I will have a look and see if I can make it work with that.
Cheers
Frank

Hi, I have managed to get a bit further but encountered a few quirks.


I have used this format for the seconds mins and hours
(59-(#DsZ#))
however the leading zero gets lost when value below 10 , if I test with #DsZ# the leading zero is there

also on the days countdown the days change at midnight +1 hour and the hours change correctly

this is the days expression
($(88-#DD#)<0?(365-(#DD#)+88):(88-(#DD#)$)
is the days related to timezone ? Have not tested this bit on the actual watch or on the mobile app.

The mobile app shows the latest facer version but when you load it on the mobile phone you get an old facer face…is there a cache that needs clearing? I have shutdown facer on th mobile but still loads an old version.

Cheers for your help.

1 Like

I’m on my phone so i can’t test it but could you set a conditional for the minute result if its less than 10 to add a “0” in front of it else repeat the same calculation?

Hopefully that makes sense…

Also not sure if this link will help…

Thanks will take a look.
many changes.

facer 7

Hi
do you want to help me
with the hour minutes and seconds countdown code
I’m not getting that right
the countdown of the days that I have done

greetings Sandra

I use this format
(304-(#DD#)) where xxx is target date (31st October 2019) which is the 304 day of the year 2019
Hope that helps.
Frank

1 Like


the days i have
now i want to let the time count down like
2 days 3 hours 5 minutes 55 sec
like on this watch face

I think I solved it
thank you