Based on the information from the API at , I have implemented the following code to retrieve a Unix timestamp based on a selected date.
Initially, I configured:
$('.startDate').pickadate({
selectMonths: true,
selectYears: 15
});
Afterwards, I attempted the following:
console.log($('.startDate').get('picker'))
console.log($('.endDate').get('select','pick'))
Unfortunately, no output is generated by either of these lines. My anticipated response follows this structure:
1476772363 signifies 1476772363 seconds since Jan 01 1970 (UTC) for the chosen date
However, utilizing the line
console.log($('.endDate').val())
results in the display of:
20 October, 2016