Present Time and Date

Hey guys,

I need to use NOW in date and time for a form in studio (for save date and time a user made a form)
how is that possible to set present day and time in a read-only mode for a field?

thanks

@gdu-axelor @AxelorTeam
would you please answer me?

Hello

current datetime value can be fetched using Built-ins variable by providing the evaluation expression like expr:eval: __datetime__.

To know more about Built-ins variables, you can refer : Actions :: Axelor Documentation

Thank you

Hi @rch-axelor and thanks for reply
I added a Date Time from studio and tested in many ways (like these images) with ’ and " and without them with : or = or many ways
would you please check and tell me where is my wrong?

thanks

Axelor1
Axelor2
Axelor3
Axelor4
Axelor5
Axelor6
Axelor7

Hello

You are trying to specify value Expr from studio for field. Here you have to provide the javascript expression.
For current datetime new Date(). (without any single or double quotes or eval:)

Thank you

it works with an action
thanks