Navigation: Realtest Script Language > Syntax Element Details > Date Category General-Purpose Functions Description Returns a numeric date value for a given year, month and day Syntax Date(year, month, day) Parameters year - year number month - month number day - day number Notes The return value is the date in YYYYMMDD format, which can be used for comparison with BarDate or as input to DateBars. Example RefDate: Date(2024, 1, 1) Returns 20240101. Can be compared with BarDate or passed to DateBars. Copyright © 2020-2026 Systematic Solutions, LLC