Friday, 2 December 2011


Dashboard Compare 2 Prompt dates to see if they are the same and show ERROR

The following script enables to compare 2 date prompts on a dashbaord  to tell the user to select a prior Date less than the current Date warning message..

Insert a text box into a dashboard "Contains HTML"
Then paste the following code into the text box

<script type="text/javascript">
  var curr =
  var prev=



  date1=new Date(yr1, mon1, dt1);
 date2=new Date(yr2, mon2, dt2);

  if (date1<=date2)
    alert('Please enter the Prior Date value as less than Current Date');


Blog Archive

About Authors

Shahed Munir

Krishna Udathu

Shahed and Krishna are Oracle / Big Data Experts