IDATE can be used as an intrinsic subroutine or as a portability routine.
Intrinsic Subroutine: Returns three integer values representing the current month, day, and year.
Syntax
Example
If the current date is September 16, 1996, the values of the integer variables upon return are: I = 9, J = 16, and K = 96.
Portability Subroutine: Returns the month, day, and year of the current system.
Module: USE DFPORT
Syntax
Compatibility
CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB
See Also: DATE, DATE_AND_TIME, GETDAT
Example
use dfport
integer(4) imonth, iday, iyear, datarray(3)
! If the date is July 11, 1996:
CALL IDATE(IMONTH, IDAY, IYEAR)
! sets IMONTH to 7, IDAY to 11 and IYEAR to 96.
CALL IDATE (DATARRAY)
! datarray is (/11,7,96/)