Skip to main content
Known Participant
April 11, 2024
Question

calcolare la data restante tra due date

  • April 11, 2024
  • 1 reply
  • 576 views

buongiorno, ho due date esempio:

1) dal 01/07/24 al 10/07/24 

2) dal 05/07/24 al 22/07/24

come si nota le due date si sovrappongono e vorrei con dei campi modulo mi dicesse le date che si sovrappongono.

grazie

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 11, 2024

You need to check if the first or the second dates of the second period fall within the first period.

Known Participant
April 11, 2024

la seconda data rientra nel primo periodo dal 01/0724 al 10/07/24

try67
Community Expert
Community Expert
April 11, 2024

No, only the first date does. This is what you need to check in your code.