Field that files automatically Today Date and Time

Hello,

As for Default value of a field I use Today to get the Today’s date.

How can I have the default value as Today(date) and current hour.

Doctype : , Sesizari""
Field name: , data_sesizare"

Thanks!

Using custom script, set the below code to the field

frappe.datetime.now_datetime()
2 Likes

go to customize form -> select doctype -> find respective date field

on the display section you will find default textbox. Just fill up the word Today.

3 Likes

Date and Time both required

Hi, with regards to this answer how about I only need the date not the time?

you just need to type Today in default in that field

it will work whether it is date or time

1 Like