Hi Everyone,
I am using Import excel to DB smart service to import excel data in Appian. And my requirement if date column in excel is in any format then it should be changed to "dd/mm/yyyy" before inserting into DB. I dont see any option to format the dates in smart service. Can anyone please help me out?
Many Thanks!
Discussion posts and replies are publicly visible
Another way to do it is to import the data in the staging table and simply transform the data using an expression rule and rewrite it back into the proper table either with a Write Record or Write to Data Store Entity Smart Service.
Thanks everyone,
Any idea how to convert any date format to "dd/mm/yyyy" using expression rule.
What's the format in the excel?
The requirement is that the user can write into any date format in excel?
Ideally it would be a standard date format for the whole column. Based on that format, you could write an expression to parse the date.
Otherwise, you can also use the parseDate function in https://community.appian.com/b/appmarket/posts/date-and-time-utilities which could work if you don't have a stable format.
Is there any way to validate the dates imported through excel in Appian is valid or not. Does anyone help with custom expression to validate the dates are valid.
Thank you!
Trying to validate a date in "any" format is very tricky. You could try a statistical approach on all the imported values. You would have to identify the used separator and the order of the individual values.
I think it is much easier to make the user select a format when importing.