If you want to extract the date component of a datetime field [for example the 'create' field in the Create Data default data] and output it as a date type field then you could use a Transform node and configure the ConfigureFields property as follows (excluding the [Code]..[/Code] delimiters:
[Code]
#Configure all fields from input 'in1' to be mapped
#to the corresponding fields on the output 'out1'
out1 += in1
## Define new output metadata for a date type field
out1.dateValue = datetime.date
[/Code]
Then configure the ProcessRecords script as follows:
[Code]
#Copy all fields from input 'in1' to the corresponding output fields
#in output 'out1'. Copies the values of the fields that have been setup
#in the mapping defined in the ConfigureFields property
out1 += in1
if fields.create is Null:
out1.dateValue = Null
else:
out1.dateValue = fields.create.date()
[/Code]
Note that you have to explicitly handle any Null values in the input data else the node will fail.