CA Service Management

  • 1.  how to increase calendar years in SDM

    Posted Apr 18, 2019 05:59 AM

    Hello,

    I've a start date and end date fields on my employee form. From where employee select its start date of the request and the end date of the request. I've a scenario when the employee select the year from calendar its showing year till 2028.

    I want to increase the years to 2099.  

     

    anyone have suggestions??

     

                                                     



  • 2.  Re: how to increase calendar years in SDM
    Best Answer

    Posted Apr 18, 2019 06:57 AM

    take a look at www/htmpl/default/v30_date_helper.htmpl

    adjust the for-loop might help:

    ....

            var nowY = rightnow.getFullYear();

            for (var z = nowY - 10; z < 2100; z++) {

    ....

     

    even though I think , nobody wants to have such a huge dropdown list....

    Regards

    ...........Michael



  • 3.  Re: how to increase calendar years in SDM

    Posted Apr 18, 2019 07:58 AM

    thanks @michael



  • 4.  Re: how to increase calendar years in SDM

    Posted Apr 18, 2019 09:45 AM

    Hi Michael,

    Thanks for your input on this.

    I tried this also in our environment and the date appeared as wanted, but at the point of saving the ticket it popeed up an error that "Bad date or bad date format: (04/18/2054 02:40pm).

    Is there something else that needs be done?

    Awaits your prompt response.

    Thanks and Regards,

    Amosu



  • 5.  Re: how to increase calendar years in SDM

    Posted Apr 18, 2019 10:00 AM

    Hi Amosu.

    You  might hit the

    https://en.wikipedia.org/wiki/Year_2038_problem

    Problem

    Thanks for pointing that out !

    Regards

    ...Michael



  • 6.  Re: how to increase calendar years in SDM

    Posted Apr 18, 2019 10:38 AM

    Hello Michael,

    Thanks for your prompt response.

    This had been adjusted.

    Warm Regards,

    Amosu