In this example, the Mapper Snap is used to generate a datetime object. The text 2013-02-01 is parsed into a datetime object using the Date.parse function in the Mapper Snap. The Mapper Snap configuration is as follows:
The datetime object generated by the Mapper Snap is as follows:
The datetime object from the Mapper Snap is passed to the Date Time Extractor Snap. The Date Time Extractor Snap is configured as follows:
The output preview of the Date Time Extractor Snap is as follows:
You can see that all the date time components from the input data are extracted.
Download this pipeline.