Date Fields - Getting Values
date myDate = customfield_12345;
NOTE: Getting the value using the customfield id is not the best practice when writing SIL scripts. See the Working with Custom Fields example for more information on the best practices.
Peacock