
- Rexx Tutorial
- Rexx - Home
- Rexx - Overview
- Rexx - Environment
- Rexx - Installation
- Rexx - Installation of Plugin-Ins
- Rexx - Basic Syntax
- Rexx - Datatypes
- Rexx - Variables
- Rexx - Operators
- Rexx - Arrays
- Rexx - Loops
- Rexx - Decision Making
- Rexx - Numbers
- Rexx - Strings
- Rexx - Functions
- Rexx - Stacks
- Rexx - File I/O
- Rexx - Functions For Files
- Rexx - Subroutines
- Rexx - Built-In Functions
- Rexx - System Commands
- Rexx - XML
- Rexx - Regina
- Rexx - Parsing
- Rexx - Signals
- Rexx - Debugging
- Rexx - Error Handling
- Rexx - Object Oriented
- Rexx - Portability
- Rexx - Extended Functions
- Rexx - Instructions
- Rexx - Implementations
- Rexx - Netrexx
- Rexx - Brexx
- Rexx - Databases
- Handheld & Embedded
- Rexx - Performance
- Rexx - Best Programming Practices
- Rexx - Graphical User Interface
- Rexx - Reginald
- Rexx - Web Programming
- Rexx Useful Resources
- Rexx - Quick Guide
- Rexx - Useful Resources
- Rexx - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Rexx - DATE
This method returns the local date in the following format.
dd mon yyyy
Syntax
DATE(options)
Parameters
Options − This is the option for formatting the date value. They can be anyone of the following options given. −
Base − This parameter returns the number of complete days since the day 1 January 0001
Days − This parameter returns the number of days that have passed for the current year
European − This parameter returns the date in the format dd/mm/yy
Full − This parameter returns the number of microseconds since the day 1 January 0001
Month − This parameter returns the full English name of the current month. An example can be, September
Normal − This parameter returns the date in the normal format as shown below. This is the default parameter option which is dd mon yyyy
Ordered − This parameter returns the date in the format – yy/mm/dd
Standard − This parameter returns the date in the format – yyyymmdd
Weekday − This parameter returns the English name for the day of the week. An example can be, Wednesday
Return Value
Returns, by default, the local date in the format: dd mon yyyy.
Example
/* Main program */ say DATE() say DATE("B") say DATE("D") say DATE("E")
When we run the above program we will get the following result. This depends on the current date on the system.
The following program is just an example.
Output
2 Jun 2016 736116 154 02/06/16