Hi all!

i'm having difficulties with jQuery datepicker to get two input fields with different dateformats, her is my code sofar:

<script type="text/javascript">
$(function() {
	$('#inlineDatepicker').datepick({
	multiSelect: 999,
	monthsToShow: 2,
	altField: '#datum',
	altFormat: '"yyyy-mm-dd"',
	minDate: '+1d',
	}
	);
});
</script>

Now my problem is i'm showing my datepicker in a div, and i don't know how to populate another input field with this setup....

Can anyone push me in the right direction?

thakns alot!

I figured out how to populate the second altfield

<script type="text/javascript">
$(function() {
	$('#inlineDatepicker').datepick({
	multiSelect: 999,
	monthsToShow: 2,
	altField: '#datum, #date2',
	altFormat: '"yyyy-mm-dd"',
	minDate: '+1d',
	}
	);
});
</script>

Now the problem arises, that both dateformats are the same and i need them to be different...
Does anyone know how to acvieve this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.