Is there a way in Code Studio to display the current time and/or date? For example an on onEvent that takes the user to a new page where the current time and/or date would display?
Hopefully that helps a little!
Do you have any code for converting milliseconds to the current date or current time? I have students who want to display both for an app they are creating. I can probably figure out how to the the millisecond-to-date conversion, but would much rather re-use existing code.
Also, can we request a getCurrentTime() and getCurrentDate() function in future releases?
Hello @sconyers I have a little app here that may show you how to get done what you’d like to do: https://studio.code.org/projects/applab/hyTOU0j43dPoKuRDgy-I_31r6b5Vc5ji-bajSvYqqoo/view