Click here to Skip to main content
15,885,733 members

Comments by Member 10212775 (Top 12 by date)

Member 10212775 10-Jan-18 6:35am View    
provide your html code
Member 10212775 17-Jan-17 4:07am View    
thank you very much for the idea. i changed code to

var thisStart = moment() // 2017-01-16
.month(new Date(startDate).getMonth()) // 2017-04-16
.startOf('month');

var thisEnd = moment() // 2017-01-17
.month(new Date(startDate).getMonth()) // 2017-04-16
.startOf('month') // 2017-04-01
.subtract(1, 'days') // 2017-03-31
.add(1, 'year');


if (currentMonth < financialYearStartMonth) {
thisStart = thisStart.subtract(1, 'year');
thisEnd = thisEnd.subtract(1, 'year');
}



//Date range as a button
$('.daterange-btn').daterangepicker({
ranges: {
'Today': [moment(), moment()],
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'This Month': [moment().startOf('month'), moment().endOf('month')],
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')],
'This Financial Year':[thisStart,thisEnd]

},

startDate: moment().subtract(29, 'days'),
endDate: moment()
},
function (start, end) {
Search(start.format('DD-MMM-YYYY'), end.format('DD-MMM-YYYY'));
});

and its working fine now
Member 10212775 24-Jun-16 8:05am View    
KarstenK,

I have gone through MFC grid control and i want to know how can i implement this with my MVC application. When i downloaded demos associated with this article,it is VC++ projects and its DLL is not available.

Please help
Member 10212775 18-Dec-14 4:56am View    
its showing @Html.ActionLink("Back", "Index", "News", null, new { @class = "linkbutton" }) as text
Member 10212775 14-Nov-14 1:05am View    
no i dont have any model for this and corrected the semicolen..