I'm trying to write an InfoPath form from code.
I'm working with the xml
of a form, and when I write a date it gives me no error but when I open the form in SharePoint and click on Save, it says that the dates are not correct, exactly it says:
Date Field "Only date allowed"
Note: I have tried with different formats and even that the format is the same that is showed if you choose a correct date.
Note: I use to write the xml
element the next code:
writer.WriteElementString("my", "EntryDate",null, "");