Day of Week with Time and Date Widget

  • 2
  • Idea
  • Updated 1 year ago
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members.

Really need to display the current day of the week (Monday, Tuesday, etc) with the Time and Date Widget. 
Could you please add this functionality?
Photo of PR (Rakesh)

PR (Rakesh)

  • 142 Points 100 badge 2x thumb

Posted 1 year ago

  • 2
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
I agree, posting day of the week makes more sense than posting year... unless one just came out of coma, typical person knows what year currently is. Anyway, I addressed this issue with simple HTML as in here: https://community.risevision.com/rise_vision_inc/topics/time-date-disappeared
Photo of PR (Rakesh)

PR (Rakesh)

  • 142 Points 100 badge 2x thumb
Hi Darius,
Thanks for helping me out here! With this HTML Widget.

http://prodo.us/dsigns/dt/date-time.zip

Only needed the Weekdays so I changed it to

document.getElementById('datebox').innerHTML=""+tday[nday]+"";}
Photo of PR (Rakesh)

PR (Rakesh)

  • 142 Points 100 badge 2x thumb
Don't know how to get the time in there too, but I'm happy with this!
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
I do not understand... what do you mean by 'get time in there?' The package has two sets of HTML for the HTML Widget. One is for date and another is for time. You can: #1. use two instances of HTML Widget for each (this is what I usually do), or #2 merge both into one. Note, this originally came with time and date as one, but all that was in a single line, which presented a challenge... the length of the line was dynamic and impossible to control (different lengths of the weekday and month names), I decided to split it.
Photo of PR (Rakesh)

PR (Rakesh)

  • 142 Points 100 badge 2x thumb
Ah yes I see it now.
Photo of PR (Rakesh)

PR (Rakesh)

  • 142 Points 100 badge 2x thumb
How do you set the time to 24 H display?
Photo of Darius - PRODO.us

Darius - PRODO.us, Champion

  • 26,850 Points 20k badge 2x thumb
easy...

REMOVE:
if(nhour==0){ap=" AM";nhour=12;}
else if(nhour<12){ap=" AM";}
else if(nhour==12){ap=" PM";}
else if(nhour>12){ap=" PM";nhour-=12;}

REMOVE 'ap+' FROM: document.getElementById('datebox').innerHTML=""+nhour+":"+nmin+ap+"";
Photo of PR (Rakesh)

PR (Rakesh)

  • 142 Points 100 badge 2x thumb
Thanks again!