Skip to main content
Solved

Formula Primary Field ( Recorded Time)

  • Jan 5, 2022 10:30 AM UTC
  • 3 replies
  • 100 views

Hai everyone, how to write formula on primary key column to capture Recorded time.
I know there is column with type created time, but for primary key I’m not using so I think will be better if use for recorded time but with formula

Thank you

Best answer by Databaser

Hi, I mean for created time and date with time zone Asia, Jakarta.
My formula is `

DATETIME_FORMAT(NOW(),‘YYYY-MM-DD -LTS’)

but with this how to add time zone?
Could you help me for this?
Thank you


Try

DATETIME_FORMAT(SET_TIMEZONE(NOW(), "Asia/Jakarta"),"YYYY-MM-DD -LTS")

You can find the list with supported timezone identifiers here.

View original
This topic has been closed for replies.

3 replies

Databaser
Forum|alt.badge.img+25
  • Brainy
  • Jan 5, 2022 3:32 PM UTC

Hi @Lucas_Tjahjadi and welcome to the community!

What do you mean by “recorded time”?


  • Author
  • Participating Frequently
  • Jan 6, 2022 2:41 AM UTC

Hi @Lucas_Tjahjadi and welcome to the community!

What do you mean by “recorded time”?


Hi, I mean for created time and date with time zone Asia, Jakarta.
My formula is `

DATETIME_FORMAT(NOW(),‘YYYY-MM-DD -LTS’)

but with this how to add time zone?
Could you help me for this?
Thank you


Databaser
Forum|alt.badge.img+25
  • Brainy
  • Answer
  • Jan 7, 2022 6:22 PM UTC

Hi, I mean for created time and date with time zone Asia, Jakarta.
My formula is `

DATETIME_FORMAT(NOW(),‘YYYY-MM-DD -LTS’)

but with this how to add time zone?
Could you help me for this?
Thank you


Try

DATETIME_FORMAT(SET_TIMEZONE(NOW(), "Asia/Jakarta"),"YYYY-MM-DD -LTS")

You can find the list with supported timezone identifiers here.