Select to view content in your preferred language

Adding the current date to experience builder site

262
1
03-18-2024 06:46 AM
LeannaDeagle
New Contributor II

I would like to add text or a widget to my experience builder page that displays the current date. This won't be connected to data in the map so I adding dynamic text won't work. I previously found some code online that I could use in the embed widget, but I can no longer find it. Also, apparently experience builder doesn't support <string> html anymore? Anyone have any tips or ideas on how to achieve this? 

0 Kudos
1 Reply
MelissaBrooks
Occasional Contributor

Hi there,

Was this the link you were referring to. I was also hoping for a solution that did not require an externally hosted html page. 

Solved: Dynamic Date in Text box not based on data - Esri Community

 

I ended up creating a custom clock using timeanddate.com and using the Exb Bldr embed tool to put it in the header. Although this works well, it is also not ideal as it is external source and not out-of-the-box.

Free Clocks for Your Website (timeanddate.com)

Melissa Brooks
Senior Geospatial Systems Specialist
Tasman District Council (New Zealand)
0 Kudos