In Adobe, you can edit a form field textbox, and go to the Format tab. There you can select a format category, such as 'Date', then select form predetermined formats, such as mm/dd/yyyy. I need to access this setting in my code, before setting the Text property of the field.
Something like:
PdfLoadedTextBoxField f = (PdfLoadedTextBoxField)form.Fields[FieldName];
if(f.Format.Category == "Date")
{
//Format my value accordingly
Value = ".....";
}
f.Text = Value;