/
Display date as year only in query results
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com
Display date as year only in query results
Steps to create a query to show only year as a column
Click on the ‘Create’ button on the query list page
Add any filter for the specimens, collection status equals collected is added for this example
Next, click on the temporal expression icon and add the date format as mentioned below -date_format(Specimen.spmnCollRecvDetails.collTime, "%year4%") >1990 and add a description.
In the columns, select the new temporal expression field as shown in the screenshot below
In the query results page, the collection date will only show the date in YYYY format.
, multiple selections available,
Related content
Query Results view
Query Results view
More like this
Calculated fields (Temporal Queries)
Calculated fields (Temporal Queries)
More like this
Query: Display list of carts per specimen
Query: Display list of carts per specimen
More like this
Hierarchical Queries
Hierarchical Queries
More like this
Reporting
Reporting
More like this
Query Checked-Out Specimens
Query Checked-Out Specimens
More like this
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com