Hi,
I'm trying to do something similar to this, but I want to extract the time and date from my source path.
I've tried modifying datetime.xml, but I can't get it to work, I followed this example but changed the regex to match my format.
This is what it looks like, but I can't get it to work. Does anyone have any suggestions?
<define name="_wsdatenozone" extract="year, month, day,hour,minute,second">
<text><![CDATA[source::.*?(\d{4})-(\d{2})-(\d{2})_(\d{2})-(\d{2})-(\d{2})]]></text>
</define>
<timePatterns>
<use name="_wsdatenozone"/>
</timePatterns>
<datePatterns>
<use name="_wsdatenozone"/>
</datePatterns>
Edit: My timestamps are of the form:
C:\Users\angeliga\Filer\379177\Report_2013-05-21_16-49-29\Server\file
where the timestamp is 2013-05-21_16-49-29 (YYYY-MM-DD_hh-mm-ss)
... View more