Hi
Use this code to get selected date in input text box using aui-calender.
1
2<aui:script>
3 var startCal;
4 var endCal;
5 AUI().ready('aui-calendar', function(A) {
6 startCal = new A.Calendar({
7 trigger : '#<portlet:namespace />startDate',
8 dateFormat : '%d/%m/%Y',
9
10 selectMultipleDates : false,
11 on : {
12 select : function(event) {
13 endCal.set('minDate', startCal.getCurrentDate());
14 endCal.syncUI();
15 }
16 }
17 }).render();
18
19 A.on('mousedown', function() {
20 A.CalendarManager.hideAll();
21 }, document);
22
23 });
24</aui:script>
startDate is the id of that text box where you want the selected date.
Regards
Juhi
Firmi prego dentro per inbandierare questo come inadeguato.