Getting time and date on my ESP and send it to a data base

HI ! I' have some problems to get date and hour on my ESP8266 then sending it to a data base is there any project or programme that can help on my research

Google for “esp8266 Arduino ntp” There are many examples of projects which obtain time using the Internet. If you are connecting to a database server e.g. MySQL you can also use a time stamp from there.

In the Arduino IDE.

Select:

File | Examples

One of those will connect, through the ESP32 WiFi to the Internet, get a time, set the internal ESP32 RTC to the time and disconnect. From that point you can write code to access the RTC and get the info contained.