DateTime Project
The DateTime project contains three adapter configurations: DateTimeReader.adfilesmodel, DateTimeWriter.adfilesmodel, and DateTimeWriter2.adfilesmodel. The sample project shows how the adapter handles date and time.
In DateTimeReader.adfilesmodel, Publication Service parses the time.txt file which has the second field set to the long date and time format. Publication Service is configured to publish a record that has different date formats.
In DateTimeWriter.adfilesmodel, Subscription Service receives the objects, formats and writes them to the outtime.txt output file. Subscription Service writes these dates to the file in the long date format, irrespective of the formats they are published in. This is the default behavior of the adapter.
In DateTimeWriter2.adfilesmodel, Subscription Service receives the objects, formats and writes them to the outtime2.txt output file. The write schema of Subscription Service is configured to generate date and time in exactly the same formats in which they are published.