Hi there,

I am trying to display some content for a two hour slot, for example 1.00pm - 3.00pm.

I have this code:

PHP Code:
//initialize date object
    
var = new Date();
    var 
currentHour d.getHours(); //note 0-23

    
if (currentHour 1
     { 
         $(
'div').append('hello');
      }
    else if (
currentHour == 3)
    {
       $(
'div').append('content shown for two hours');
    }
    else {
       $(
'div').append('hello'); 
      } 
Is there a way I can modify the above to show the content for two hours?

Thanks