Manipulation of date values

This example demonstrates the manipulation of date values and the use of Set( _SET_DATEFORMAT ) to format the return of function Date().

Source:

Screenshot:

$ hbrun dates3.prg

25/05/1999   3
24/05/1999
28/05/1999   6
01/06/1999   3
05/25/1999   3
05/24/1999
05/28/1999   6
06/01/1999   3

09/27/2016   3
09/28/2016   4
09/29/2016   5
09/30/2016   6
10/01/2016   7
10/02/2016   1
10/03/2016   2
  /  /       0

How to build/run:

To learn how to build/run this example, see this page.