Date Picker adding MinDate depending on the day of the week

I am currently using the the javascript below to chose min date which works as it is intended. Is there a to change the minDate value to a different value when it Thursday and Friday of the week?

<script type="text/javascript">
 gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
 if ( formId == 5 && fieldId == 3 ) {
 optionsObj.minDate =3;
 optionsObj.maxDate = '+1 Y';
 }
 return optionsObj;
 } );
</ script>

I looked at help for gravity forms as there is a lot of options but not the one I need. I need it check the the DAY OF THE WEEK which looks like the javascript Sunday [0], Monday [1], etc. and be able to change the MinDate depending on the day of the week.

If day is Friday, Saturday, Sunday, Monday, Tuesday - minDate = 3

If day is Wednesday - minDate = 5
If day is Thursday - minDate = 4

It seems like it would be a basic if then statement and I tried to mess around with it but I could not get it to work.