Click here to Skip to main content
16,018,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
Iam facing this above problem.
C#
protected void FillBookingDataset()
       {
           DateTime firstDate = new DateTime(ASPxCalendar1.VisibleDate.Year,
        ASPxCalendar1.VisibleDate.Month, 1);
           DateTime lastDate = GetFirstDayOfNextMonth();
           dsBooking = GetCurrentMonthData(firstDate, lastDate);
       }

       protected DateTime GetFirstDayOfNextMonth()
       {
           int monthNumber, yearNumber;
           if (ASPxCalendar1.VisibleDate.Month == 12)
           {
               monthNumber = 1;
               yearNumber = ASPxCalendar1.VisibleDate.Year + 1;
           }
           else
           {
               monthNumber = ASPxCalendar1.VisibleDate.Month + 1;
               yearNumber = ASPxCalendar1.VisibleDate.Year;
           }
Posted
Updated 7-Mar-14 21:10pm
v2

its an sql server error..where server minimum date time are higher then the supplied datetime.

pass minimum or greater datetime then that of server from application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900