Computing formatted date string (to avoid reporting "undefined" on rollover)