Disable next month at every first 3rd days Calendar.

Disable next month at every first 3rd days Calendar.

Hi all,

may I know how to fix my calendar. I want it to disable next month at every first 3rd days

This is my code.

now = new Date()
myForm = document.form1.tarikhmula.value



inputDate = new Date()
inputDate.setDate(myForm.substring(0,myForm.indexOf("/")))
inputDate.setMonth(myForm.substring(myForm.indexOf("/")+1, myForm.lastIndexOf("/"))-1)
inputDate.setFullYear(myForm.substring(myForm.lastIndexOf("/")+1, myForm.length))
inputDate((now - 3) * -1).AddMonths(1)
    if (inputDate>now)
    {
        alert('You can`t choose date every 3rd days at the next month')
        return false
    }
}
View Answers









Related Tutorials/Questions & Answers:
Disable next month at every first 3rd days Calendar.
Disable next month at every first 3rd days Calendar.  Hi all, may I know how to fix my calendar. I want it to disable next month at every first 3rd...) { alert('You can`t choose date every 3rd days at the next month
to renew leave to next month
that leave in that particular month, it must be renewed to the next month so that he can apply leave for 2 days the next month...to renew leave to next month  i need to make a project where
Advertisements
Determining the Number of Days in a Month
Determining the Number of Days in a Month   This section will show the way of counting the number of days of a month in the specified year. Following... in the constructor to create instance for finding the number of days in that month
Calendar
; In this section we are displaying the days of  a specific month and the calendar format of the days for this month. We are also checking whether the year... the number of days to be left blank at the start of a month by using the get() method
Java get number of Days in Month
Java get number of Days in Month   ... of days in the specified month. This example sets the year as 2008, month.... Here we are going to get the number of days in the month February.ADS
Output Previous or Next Day of the Month
Output Previous or Next Day of the Month   Please Help! I need... dealers refer to their clients as "users") for the date of the month and whether they want the next day or the previous day. E.g., the user would see: Enter todays
can u help me to get a calendar with color codes on days ???
can u help me to get a calendar with color codes on days ???  hi roseindia, Can you help me to get the code, I need a calendar with color codes.i,e... previous 3 month(<<<) and next 3(>>>) month with link in view
ModuleNotFoundError: No module named 'Calendar-Month-List-View'
ModuleNotFoundError: No module named 'Calendar-Month-List-View'  Hi...: No module named 'Calendar-Month-List-View' How to remove the ModuleNotFoundError: No module named 'Calendar-Month-List-View' error? Thanks  
Hi..How to Display Days by month - Java Beginners
Hi..How to Display Days by month  Hi Friend.... I have a doubt on date Program... How to display the Number of days..it should display Separate .Month by Month For Ex.. INPUT: ---------------- Year Month Day 2006 12
PHP convert week number to days or month - PHP
PHP convert week number to days or month  Small, simple and easy code that can do following task: 1.Convert Week Numbers to Month 2.Convert Week... or weeks? I tried but it didn?t work well.. what all I need is 4 weeks = 1 month
displaying a calendar of only current month in jsp on webpage using javascript
displaying a calendar of only current month in jsp on webpage using javascript  how can we display a calendar of only current month in jsp on webpage using javascript
(Displaying a calendar in GUI
a program that displays the calendar for the current month, as Use labels, and set texts... classes," to obtain the information about month, year, first day of the month, and number of days in the month
Display first letter of every word in uppercase
Display first letter of every word in upper case In this Java tutorial section, you will learn how to display the first letter of every word in uppercase...)),token.substring(1) ) of Character class change the first character of every token
Get first day of week
Get first day of week       In this section, we will learn how to get the first day of  week in Java. As we know that GregorianCalendar provides the current date, month
class Calendar - Java Beginners
print a calendar for any month starting Junuary 1,1500.Note that the day for January 1 of the year 1500 was a Monday.to calculate the first day of a month, you can... Calendar,include the following operations: a.Determine the first day
Calendar Example
and next year dates. SWT allows to create Calendar by using... getMonthDays() that will return the number of days of the month. The Button..., next month and previous month by calling SelectionAdapter class. 
calendar
calendar  I got one requirement like this i have to display a calendar with only current month and whenever user selects the date, that date needs to be display in a text field
Java get Next Day
Java get Next Day       In this section, you will study how to get the next day in java using Calendar class. In the given example, we have used the class
java yesterday - Date Calendar
year month and days between two dates use following code and for took... { flag = 0; } if(cur_month == 2){ if(flag == 1){ no_of_days = 29; }else{ no_of_days = 28; } } if(cur_month == 1
calendar
calendar  sir, how to fix calendar in javascript..pls provide the complete source code..   Please visit the following link: http://www.roseindia.net/javascript/javascript-calendar.shtml
calendar js
chosen from first calendar , the second calendar should be disabled till that date. for eg once i have chosen date 21-03-2012 from first calendar, in the next calendar the person can't able to choose data till 21-03-2012, the dates
Get Last Day of The Month
Get Last Day of The Month       Calendar class inherits from Java.util.calendar.Calendar... and a set of integer fields such as YEAR, MONTH, DAY, HOUR.. A Date object 
Calendar Operation
to the next quarter 1st month ( January) If suppose my selected day of month...Calendar Operation  I have a date - example - 22-09-2012(start date) I have to find my end date based on the current quarter My input are month
continue java - Date Calendar
_month == 7 || cur_month == 8 || cur_month == 10 || cur_month == 12){ no_of_days..._month == 11){ no_of_days = 30; } if(cur_date > date){ day = cur_date - date; }else{ day = cur_date - date + no_of_days; cur_month = cur
Java Coding - Date Calendar
Java Coding  Write a program that prompts the user to enter the year and first day of the year and displays the calendar for the year on the console... 1,2005, your program should display the calendar for each month in the year
1st 2nd & 3rd Normal Form
1st 2nd & 3rd Normal Form  print("code sample");Im a intermediate App& Web Programmer and a novie when it comes to data base, just had the basic... members with same first name(redundant data) so buy the NF rule ,Should i
disable function
disable function  Sir, I have called a java script function when one radio button is checked i want to disable this function when another radio button is checked ,both radio buttons are of same group Please help Thanks in advance
java again - Date Calendar
== 8 || cur_month == 10 || cur_month == 12){ no_of_days = 31; } if(cur_month == 4 || cur_month == 6 || cur_month == 9 || cur_month == 11){ no_of_days = 30... - date + no_of_days; cur_month = cur_month - 1; } if(cur_month > month
3rd&5th highest salary from a table
3rd&5th highest salary from a table  how we get 3rd highest and 5th highest salary from a table
calendar - Date Calendar
Creating a Date calendar in Java  I am looking for a code for Creating a Date calendar in Java
How to disable an HTML object?
How to disable an HTML object?  How to disable an HTML object
enable disable checkbox in javascript
enable disable checkbox in javascript  How to enable disable checkbox in javascript
uikeyboard disable return key
uikeyboard disable return key  uikeyboard - hot to disable return key
Calendar - Ajax
Calendar  Make a Java web application that will give the month and year for all days that fall in a specific day of the month. For example a user will enter day of the week ( e.g. Monday )and day of the month ( e.g. 11
Disable of Combo - JSP-Servlet
. That means every user can give grade only at once... so i would like to disable...Disable of Combo  Hi! Thanks for your fast reply. In my project i am giving grading facility to the user. Once user selected his grade in combo
Disable UITableView Scrolling
Disable UITableView Scrolling   How to disable the UITableView Scrolling either programmatically or in XIB
calendar - Struts
Java calendar example  Please explain the Java calendar example
Java Script Code of Calendar and Date Picker or Popup Calendar
of max days in month in a year and in a leap year monthMaxDays = [31, 28, 31, 30...; } document.getElementById('selectMonth').selectedIndex = month; // first day of the month. var...'. To run calendar control, run calendar.html file and select the appropriate month
Gregorian calendar class
Gregorian calendar class  Hai... What is the purpose of gregorian calendar class?   Java provides the standard calendar by providing the class GregorianCalendar in java.util package. The Gregorian calendar is used
Java Calendar Example
:00:00 GMT+05:30 2005 is 990 days. Various get methods of the calendar class:ADS...The following Java Calendar Example will discuss java.util.Calender class... of the calendar class returns a Date object. It is then passed to the println
Operations with Calendar
Effective Date : 21-08-2012 Cut off day : Thursday I want my first cycle... This cycle repeats based on every cut off day   Here is an example... getDateOfWeekDay(int weekId, int year, int weekDay){ Calendar cal
disable keyboard in java applet
disable keyboard in java applet  How to disable key board of my client in an java applet embedded in a website while the applet is running.? Plz help
How to build calander - Date Calendar
the table with days of the month html += TR; // first, the leading... calendar. */ function refreshDatePicker(dateFieldName, year, month, day...;" + xTD; // now, the days of the month do { dayNum
this is my code java - Date Calendar
{ flag = 0; } if(cur_month == 2){ if(flag == 1){ no_of_days = 29; }else{ no_of_days = 28; } } if(cur_month == 1 || cur... == 10 || cur_month == 12){ no_of_days = 31; } if(cur_month == 4 || cur
Regarding My 3rd Question in Java - Swing AWT
Regarding My 3rd Question in Java  sir in Netbeans By default JTable Columns will appear Horizontal like Title1 Title2 Title3 Title4 in below these our data will appear so my question that is there any method
JavaScript calendar date picker
the datepicker calendar. */ function refreshDatePicker(dateFieldName, year, month... to a previous month or forward to the next month html += TR_title; html += TD_buttons...; html += xTR; // now we'll start populating the table with days of the month
enable disable table
enable disable table  hi I have table with 3 columns if i click one column the other 2 column should disable pls can anyboby help me
how to show x axis values of timeline chart in jfreechart with particular month.
how to show x axis values of timeline chart in jfreechart with particular month.  my x-axix timeline having day of 1 month and days shows me only differently and 1 month. I want month attached with days
Find Day of Month
Find Day of Month       This example explores how to find the day of a month and the day...; finds the day of a month and the day of a week by using get(field_name) method
uitextfield disable keyboard
uitextfield disable keyboard  How to disable keyboard of UITextView in iPhone SDK application?   There are two ways to disable the keyboard...)]; [self.view addSubview:pv]; return NO; } //or simply disable

Ads