Integrated Application Platform › Forums › General › From a newbie (Current date) › Reply To: From a newbie (Current date)
February 25, 2018 at 2:44 pm
#1385
Keymaster
Here is the simplest example:
Params(['ShortDate', Date()])
Reports work in terms of “formats”. In this case I used ShortDateFormat. Often the data is coming from the database, but many formats allow you to pass it explicitly as well.
You probably want more stuff on the report, so you can use Vert and Horz to compose formats. For example:
Params(['Vert',
['ShortDate', Date()],
['LongDate', Date()]])
Or if you are using a QueryFormat, you can use do things like:
Params(QueryFormat {
Query: 'tables'
Before() { return ['Text', Date().LongDate()] }
})
(In this case I had trouble getting LongDateFormat to work, so I just used Text and formatted the date myself.)
Hopefully that will give you some ideas.