Issue with date format exporting to excel from record type

Hi 

We have just upgraded the Appian version from 21.4 to 23.3 and we have an issue with the date format exported to excel coming from record types, in the prior version this issue was not happening, does anyone has experienced the same issue?

21.4 version-correct format

23.3 version - incorrect format

by looking the format in the excel is taking it as if it was a text but this is the logic behind the date column:

if(
a!isNullOrEmpty(fv!row['recordType!{92d1b022-5508-4130-83d7-528677bb837e}ACH CASE.fields.{b79811e6-b6ad-4b38-b04d-134b4d22d656}createdOn_dateTime']),
todate(null),
todate(
text(
fv!row['recordType!{92d1b022-5508-4130-83d7-528677bb837e}ACH CASE.fields.{b79811e6-b6ad-4b38-b04d-134b4d22d656}createdOn_dateTime'],
"mm/dd/yyyy hh:mm AM/PM"
)
)
)

we are just converting the date and time to date and when we do that the format gets reflected as text in the excel which was not happening in version 21.4 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    I do not full understand. You say that when the Excel only shows the year, that's what you want, but the code you posted clearly returns a full date & time.

    Second, the code 

    todate(
    text(
    fv!row['recordType!{92d1b022-5508-4130-83d7-528677bb837e}ACH CASE.fields.{b79811e6-b6ad-4b38-b04d-134b4d22d656}createdOn_dateTime'],
    "mm/dd/yyyy hh:mm AM/PM"
    )
    )

    does not make much sense to me, as it converts a datetime into a string and back into a datetime.

    Can you help me understand what you what to achieve?

Reply
  • 0
    Certified Lead Developer

    I do not full understand. You say that when the Excel only shows the year, that's what you want, but the code you posted clearly returns a full date & time.

    Second, the code 

    todate(
    text(
    fv!row['recordType!{92d1b022-5508-4130-83d7-528677bb837e}ACH CASE.fields.{b79811e6-b6ad-4b38-b04d-134b4d22d656}createdOn_dateTime'],
    "mm/dd/yyyy hh:mm AM/PM"
    )
    )

    does not make much sense to me, as it converts a datetime into a string and back into a datetime.

    Can you help me understand what you what to achieve?

Children