Skip to main content
nicholaso0002
August 12, 2022
Solved

How are Dates formatted in Appian

  • August 12, 2022
  • 11 replies
  • 0 views

Hello,

Do you know how Appian dates are formatted?  

I created a transaction at 5:01PM CDT and it appears on the database as 2022-08-12 22:01:18.070

Thanks

    Best answer by gopalk2865

    Hi, you can use text() function.

    11 replies

    gopalk2865
    Participating Frequently
    August 13, 2022

    Hi, you can use text() function.

    nicholaso0002
    August 15, 2022

    this worked for just outputting the date on a text file; but the date is saving using GMT on the database.Thanks

    mikes0011
    Brainy
    August 15, 2022
    but the date is saving using GMT on the database

    As I said in my previous reply - this is how Appian works.  You should not try to override this behavior, because many internal pieces of functionality depend on it.  You need to allow Appian to handle time zone conversion and properly utilize the front-end functionality for local timestamp values.

    The Expression Guru
    August 15, 2022

    I think it takes the GMT timezone by default. Any further answers will be appreciated.

    mikes0011
    Brainy
    August 15, 2022

    Appian stores all dates in a standardized GMT-based decimal format.  We don't see that decimal value (without trying really hard), instead we see the interpretation of what that value means to us.  When we look in the DB, what we see is that decimal value converted back into a (GMT) timestamp value.  In the Appian front-end, either at entry time or after querying the value back from the DB, we see the value in GMT converted back to our timezone.

    The Expression Guru
    nicholaso0002
    August 15, 2022

    How do we ensure that the time is not converted into GMT when saving to the Database?

    mikes0011
    Brainy
    August 15, 2022

    You don't, and you shouldn't.

    The Expression Guru