-2
I would like to know how to calculate the difference in days between two dates, excluding Saturday and Sunday.
I have a field in my form where picks the date acts, and another where the user selects a date.
var hoje = new Date('04/07/2019')
var dataFinal = new Date('10/07/2019')
in the format DD/MM/YYYY
How you want to calculate the difference between dates and show them in the format
DD/MM/AAAA
? It doesn’t make much sense to me. In fact:– Luiz Felipe
Excluding Saturdays and Sundays and bank holidays (working days)?
– Guilherme Nascimento
@Luizfelipe I think I was not clear, but it is not to be returned in DD/MM/YYYY format, the initial and final date is that are in this format, it should return an integer, sorry for the misunderstanding
– Sérgio Machado
@Guilhermenascimento only Saturday and dismissal
– Sérgio Machado