Odd Browser Form Behavior

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?
 
R

rsilva

Seems as though changing a data type from Date to String without first
removing the special formatting does not update the XSL stylesheet.

Whoops!

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top