date_parse
The date function used to parse a date or heredatetime value, according to a given format string. A wide variety of parsing options are available. The full set of formatting characters supported and sample format strings can be found here
Parameter | Type | Description |
---|---|---|
| string | the string from which to parse date information |
| string | the format string |
Returns: datetimestamp
Example
Query:
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/> PREFIX fn: <http://data.world/function/functions#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> SELECT (fn:date_parse("20010101", "yyyyMMdd") as ?date_parse) { }
Results:
date_parse |
---|
2001-01-01T00:00:00.000Z |