Skip to main content
Solved

Formula Primary Field ( Recorded Time)

  • January 5, 2022
  • 3 replies
  • 32 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.

3 replies

Databaser
Forum|alt.badge.img+25
  • Brainy
  • January 5, 2022

Hi @Lucas_Tjahjadi and welcome to the community!

What do you mean by “recorded time”?


  • Author
  • Participating Frequently
  • January 6, 2022

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
  • January 7, 2022

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.