Thursday, June 25, 2009

Weight Loss Commercials

ASP - Check if a date is between two other dates - v2

When I this article, I promised myself I would see that function and it would have made a more complete time and just wants me to have allowed it.

Now I write this post to finally put this other function.
I hope not to have made outrageous mistakes which I did not notice but I think that the script works correctly!

function is always called dateBetween but now looks like this: Function

dateBetween (data1, data2, data, repeat, result)

The function returns dateBetween TRUE or FALSE respectively, if the calculation is going to successful or if there was an error.

parameters to pass to t the function are as follows:
  • data1 [effective date] - contains the start date range
  • data2 [effective date] - contains the end date range
  • [date valid ] - contains the date to be tested
  • repeat [true ripetuto ogni anno
  • result - se dateBetween restituisce FALSE viene restituito il messaggio di errore. Se dateBetween restituisce TRUE viene restituito TRUE o FALSE a seconda dell'esisto del test.

La nuova funzionalità "repeat" serve per testare gli intervalli ogni anno. Se per esempio vogliamo sapere in che stagione ci troviamo dobbiamo passare alla funzione la data di inizio e di fine di una stagione in un anno qualsiasi e poi mettere "repeat" a TRUE . In questo caso l'intervallo tra le due date deve necessariamente essere massimo un anno.

Il ogni caso la funzione e proprio un esempio di utilizzo di quest'ultima la are zipped here.

If you have problems or questions, please contact .