Template:Trim date/doc

Usage
Trims all hidden text and microformats from dates output by Start date, Start-date, End date, and End-date. This template is of interest to template writers only.

For example,  produces:

Error: Invalid time.

However,  produces: