Page 1 of 1

Date Range Not Working

Posted: 2020-04-20 17:33
by jangle
Hello All,

I have added a filter in search page maker for a datetime field.

I throws a datetime type error from SPM but work fine if I manually put it in.

Thoughts?

Thanks!!

Re: Date Range Not Working

Posted: 2020-04-20 18:05
by jangle
Disregard.

If any one else ever has this issue, I went into the filer.php in the hooks folder and changed the format od the date to match my program.

Code: Select all

<script>
		$j(function(){
			//date
			$j("#from-date_2 , #to-date_2 ").datetimepicker({
				format: 'MM/DD/YYYY'   //config
			});

			$j("#from-date_2" ).on('dp.change' , function(e){
				date = moment(e.date).add(1, 'month');  
				$j("#to-date_2 ").val(date.format('MM/DD/YYYY')).data("DateTimePicker").minDate(e.date);
			});
		});
	</script>
Jim