0
Hello Selvaraj
Try this code:
int TempDate = Filedropdate.Day;
int TempMonth = Filedropdate.Month;
int Tempyear = Filedropdate.Year;
if (TempDate < 14)
{
Filedropdate = new DateTime(Tempyear, TempMonth, 1);
}
else
{
if (TempMonth == 12)
{
Filedropdate = new DateTime(Tempyear+1, 1, 1);
}
else
{
Filedropdate = new DateTime(Tempyear, TempMonth + 1, 1);
}
}
thanks
Please mark as answer if it helps