A modified example to include the LCD matrix display of the IP address and the time for the Arduino UNO R4 WiFi board.
It is based on the built-in example for UDP NTP.
Make sure you setup your WiFi data on arduino_secrets.h file.
Make sure you select the right value to be added to the received time so the printed time matches your time zone: