ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Server side time from custom script


#1

How to get serverside date and time from custom script


#2

How about state what have you found or tried?


#3

frappe.datetime._date && frappe.datetime (its returning the time initialise during erpnexxt installation.) . Right ?


#4

Sure give these a try and share with us what you learn :slight_smile:


#5

It’s likely what you’re looking for is in frappe.utils.data.

There are a couple of options: get_datetime, today and now.


#6

Thanks