Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
Check if date is holiday in country

I'm using Angular 12 and I would like to check if today is a working day or it's free day for workers. And it's not only about weekend but also about public holidays. I tried use date-holidays package but when I try import it like below

import Holidays from 'date-holidays';

and then use it:

const hd = new Holidays('CZ');

i receive a lot of errors like:

./node_modules/astronomia/src/angle.js:1:0-122 - Error: Module not found: Error: Can't resolve '/Users/user/project/node_modules/@babel/runtime/helpers/esm/slicedToArray' in '/Users/user/project/node_modules/astronomia/src'

Where can be a problem? Maybe you can recommend me another package for this feature? I don't want to use moment.js.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Import Holidays in your Module:

    import { HolidayModule } from 'projects/angular-holiday-planner';

@NgModule({
    ...
    imports: [
        ...
        HolidayModule
    ],
    ...
})
export class AppModule { }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!