Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic deafult date in date prompt calandar

Status
Not open for further replies.

sreevp2020

Programmer
May 30, 2019
2
US
Javascript that was working in Cognos 10 is not working in Cognos 11 for date calender prompt to show dynamic default date.

Any suggestions please

Cognos 10 working javascript

<script language = "javascript">
var formWR = getFormWarpRequest();
var dateTxtPrompt = formWR.txtDateCountStartDatePrompt
var vCurrDate = new Date();
var vFirstDay= new Date(vCurrDate.getFullYear(), vCurrDate.getMonth(),1);
var vStrDay = [vFirstDay.getUTCFullYear(), vFirstDay.getMonth()+1, vFirstDay.getDate()].join("-");
dateTxtPrompt.value = vStrDay;
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top