Showing results for 
Search instead for 
Did you mean: 

Date Conversion

Former Member
0 Kudos

Dear All,

I am having one user defined screen(developed in screen painter) and Goods Issue.

how to write the code that from the user defined screen, date field should be captured and pasted on Goods Issue screen's DocDate and TaxDate.


Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

You have to bind the date field to 'DateTime' data type in your user defined form. This can be achieved from User data sources.

Once this is done, you can read exact date values in this text box. You can easily copy and paste to the target field.


Former Member
0 Kudos

Try this out,

First you have to bind the UDF to date data type in your user defined form

In C# :

User Defined Form:

Soft_Form = Soft_Application.Forms.Item("UserDefinedForm");

oEdit = Soft_Form.Items.Item("UserFormDate").Specific;

string ODate = oEdit.Value.Insert(4, "-");

string SDate = ODate.Insert(7, "-");

DateTime DDate = Convert.ToDateTime(SDate);

Good Issue Form

Soft_Form = Soft_Application.Forms.Item("GoodsIssueForm");

oEdit = Soft_Form.Items.Item("GoodIssueDate").Specific;

oEdit.String = DDate.ToString("dd/MM/yyyy");

Reply me

Remember if Problem Resolved then mark as answered

Former Member
0 Kudos

Try this type of conversion

oGoodsIssue.DocDate = DateTime.Today.ToString

oGoodsIssue.DocDueDate = DateTime.Today.ToString