Free Support Forum - aspose.com

Unable to correctly display Date in the form

Hi, I am having an issue with filling form which has date fields. Dates comes up like 12//3919 but when click on the field then it shows correct date and format 04/12/2019 per this example.
I’ve seen complaints about this issue from other users ( PDFNET-44080 ). The scenario is identical.
Code:
Document pdfDocument = new Document(filename);
TextBoxField txtTest = pdfDocument.Form[“TextField”] as TextBoxField;
TextBoxField txtDateField1 = pdfDocument.Form[“DateField1”] as TextBoxField;
TextBoxField txtDateField2 = pdfDocument.Form[“DateField2”] as TextBoxField;

txtTest.Value = DateTime.Now.ToString();
txtDateField1.Value = DateTime.Now.ToString(“dd/MM/yyyy”);
txtDateField2.Value = DateTime.Now.ToString();

pdfDocument.Save(filesaved);

It displays correctly in a text box but not in date box. I am using version Aspose.PDF 19.11.0
ThanksTest_Field.pdf (66.1 KB)

@sportall

Thank you for contacting support.

We have been able to reproduce the issue in our environment. A ticket with ID PDFNET-47391 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

Hi, Is there any update on this issue?
Unable to display date on the form and nothing happening 8 months!

@sportall

We are afraid that earlier logged issue is not yet resolved. As it was logged under normal support model, it will be resolved on first come first serve basis. However, we have recorded your concerns and will surely consider them during issue investigation. You will be certainly notified as soon as there are some definite updates in this regard. Please give us some time.

We apologize for the inconvenience.