Facing issue in Datetime activity.

Comments

2 comments

  • Avatar
    Tobias Lüthi

    Hi Rakesh

    As far as I know it is only possible trough Javascript. AgilePoint is using JQuery datepiker. Therfore you can use the attributes 'minDate' and 'maxDate'. Here is a simple example of it:

    eFormEvents.onFormLoadComplete = function ()
    {
    var currentDate = new Date();
    var firstDay = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
    var lastDay = new Date(currentDate.getFullYear(), currentDate.getMonth()+1, 0);

    $('#internalFieldName').datepicker('option', 'minDate', firstDay);
    $('#internalFieldName').datepicker('option', 'maxDate', lastDay);
    }

    Hope it helps!

    Regards,
    Tobias

    1
    Comment actions Permalink
  • Avatar
    Rakesh Burde

    Thanks Tobias,

    It works.

    Thanks a lot.

    0
    Comment actions Permalink

Please sign in to leave a comment.