R
rsilva
I have code like this in InfoPath C# form code which updates a fields
value during a change event.
# xpnDate is a string datatype in the schema, dtDay is a C# DateTime
xpnDate.SetValue(String.Format("{0} {1}", dtDay.ToString("MMM"),
dtDay.ToString("%d")));
In the InfoPath Client, the dates show as "Oct 14" etc... but in the
browser based form, the dates show as 10/14/2007. I stepped through the
code in the debugger and it is setting xpnDate to the correct value when
run in Forms Services but still somehow the string date (Oct 14) gets
converted back into 10/14/2007 during rendering.
Any ideas?
value during a change event.
# xpnDate is a string datatype in the schema, dtDay is a C# DateTime
xpnDate.SetValue(String.Format("{0} {1}", dtDay.ToString("MMM"),
dtDay.ToString("%d")));
In the InfoPath Client, the dates show as "Oct 14" etc... but in the
browser based form, the dates show as 10/14/2007. I stepped through the
code in the debugger and it is setting xpnDate to the correct value when
run in Forms Services but still somehow the string date (Oct 14) gets
converted back into 10/14/2007 during rendering.
Any ideas?