All Versions


DSpace Documentation


Page tree

Current Release

This documentation covers the latest release of DSpace, version 6.x. Looking for another version? See all documentation.

Skip to end of metadata
Go to start of metadata

Date parser tester

Some parts of DSpace use a custom date/time parser (org.dspace.util.MultiFormatDateParser) which is driven by a table of regular expressions, so it can match any of a variety of formats.  The table is found in config/spring/api/discovery-solr.xml.  To test new and altered rules, you can use the DSpace command line tool's validate-date command.  You can simply pass it a date/time string on the command line (dspace validate-date 01-01-2015).  You can pipe a stream of strings to be validated, one per line (dspace validate-date < test.data).  Or you can have it prompt you for each string to be tested (dspace validate-date).

  • No labels

1 Comment

  1. Potential additions:

    • [dspace]/bin/dspace dsrun
    • [dspace]/bin/dspace dsprop
    • [dspace]/bin/dspace database
    • [dspace]/bin/dspace read
    • XSLT transformers (e.g. [dspace]/bin/dspace dsrun org.dspace.content.crosswalk.XSLTDisseminationCrosswalk <plugin name> <handle> <output-file>)