getDateFormats
Use this function to return Date formats used by the feed. These formats are used to convert the DREDATE
field or any field name ending with "_DATE
", or values returned by XPath queries that are expected to return dates to a consistent date format. If the fields do not match any of the date formats listed, the original value is returned.
The output type is actually a Lua table that uses default numeric keys:
{ “DDMMYYYY”, ...}
This is equivalent internally within Lua to:
{ 1=”DDMMYYYY”, 2=...}
Inputs: |
[NONE] |
Outputs: |
dateFormats (list:{string}) |
See also: |
|
Example
function getDateFormats()
return { "YYYY-MM-DDTHH:NN:SS" }
end