How to access current date in condition

Hello,
I need to calculate PF based on current date and date of birth of employee. The employee Doctype have the date_of_birth, so the difference between current date and date_of_birth can be calculated.
But in the condition of salary structure , i do not have any access to frappe functions nor datetime module.

Please help.
Regards
Manoj Tilekar

i do not have any access to frappe functions nor DateTime module. ? why so can you explain

Hi Khushal,
I don’t know how to use it or access it. When i tried to use it, it raises some error. If you know, please guide.

Regards
Manoj Tilekar

If you want to do it in server’s side (in Python), just import datetime and you can access datetime.date.today() . Hope it helps

there is data.py lot of utility has been defined

In what sense you are not able to use it can you be more specific?