Simple date and time variables. The whole code is all in a single custom block (except the buttons). The clock plays a tick, mimicking a real analog clock. You can adjust the volume of the ticking with the "tick volume" variable. The custom block takes only 1 or 0 for inputs (documentation inside). Bottom left button changes the date format. Bottom right changes the time format.
All the date/time code is in the date/time sprite. It may be Backpacked as-is. The "date format" and "12hr/24hr" sprites are not required. The "tick" may be removed.