Validating Dataport date Field

bobnavisionbobnavision Member Posts: 159
I have to import a CSV file through dataport in which there is a date field which can be in DD/MM/YYYY or MM/DD/YYYY format.
Program give an error which is obvious if its not in DD/MM/YYYY.

Data can come in both formats , how do we import the date ?

Regards,

Comments

  • kinekine Member Posts: 12,562
    You need to add some code to format the data in OnBeforeEvaluate where you can change the readed data and format them to correct format. This trigger can be accessed from Dataport Fields by pressing F9 for the selected field.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.