Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display countdown to given date? #123

Open
unrealxqt opened this issue Jul 7, 2023 · 1 comment
Open

How to display countdown to given date? #123

unrealxqt opened this issue Jul 7, 2023 · 1 comment

Comments

@unrealxqt
Copy link

Bug Report or Feature Request (mark with an x)


[ ] Bug report -> please search issues before submitting
[x] Feature request
[ ] Documentation issue or request

Current behavior

Currently the counter counts down based on time left variable.

Expected behavior

Counter should be able to count down to a given date, like how much time is left until 2023-10-22

Environment


Angular version: 14

ngx-countdown version: 14.0.0
@cipchk
Copy link
Owner

cipchk commented Jul 7, 2023

You can using stopTime property in config, like this:

config: CountdownConfig = {
  stopTime: +new Date(2023, 9, 22)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants