-
Notifications
You must be signed in to change notification settings - Fork 0
pts script syntax date
SHORTDATE and LONGDATE have no parameters. These insert today's date in the current format specified by Control Panel on your computer. The command versions ending with _TODAY are exactly the same.
The CUSTOMDATE requires a format_string. This determines how the date will be displayed in the report. Please see the custom date format string help topic for details of this.
If you want to use the date range dates that you might have passed in to the editor, then you can use the following commands, which behave exactly the same, except they use the start and end range dates:
SHORTDATE_STARTDATE
LONGDATE_STARTDATE
CUSTOMDATE_STARTDATE format_string
SHORTDATE_ENDDATE
LONGDATE_ENDDATE
CUSTOMDATE_ENDDATE format_string
If you use these start and end range dates, and you haven't actually set a date range (because you checked the "All Entries" option) it will say "<No date range specified>" in the report.
Examples:
SHORTDATE
LONGDATE
CUSTOMDATE "%A, %d %b, %Y"
Copyright © 2002 - 2025 by Andrew Truckle. All Rights Reserved.
- Using Public Talks
- Main Application Menu
-
Database Ribbon Panel
- Assignments Editor
- Backup Database
- Check Talk Exchange
- Compact Database
- Convert Database
- Create Unassigned Date Entries
- Database Security
- Maintain Databases
- Purge Database
- Rearrange Dates
- Restore Database
- Help Ribbon Panel
-
Home Ribbon Panel
- Create a Report
-
Manage Custom Reports
- Editing Scripts
- Content Ribbon Panel
- System Ribbon Panel
- Script Command Syntax
-
Tutorials
- Using The Script Editor
-
How To Write Scripts
- Module 1 - The Basics
- Module 2 - Hello, World!
- Module 3 - Multiple Text Blocks
- Module 4 - It's A Date, Then
- Module 5 - Oh, I'm Blushing!
- Module 6 - It is a Rainbow!
- Module 7 - The Font Of All Knowledge
- Module 8 - Queue To The Right
- Module 9 - Memory Like An Elephant
- Module 10 - May I Squeeze In There?
- Module 11 - Move Over, Please
- Module 12 - You Move Over Here
- Module 13 - Is My Back A Funny Colour?
- Module 14 - I'm Going Loopy Here!
- Module 15 - Fields Of Golden... Text
- Module 16 - Man, That Looks Weird
- Module 17 - Inner Peace, Inner Loop
- Advanced Script Features
- Quick Access Toolbar
- Settings Ribbon Panel
- Tools Ribbon Panel
- Revision History
- Contact Information