•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,276 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,291 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2163 | Replies: 2
•
•
Join Date: Jun 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 1
Hello Friends ,
I m new in Javascript
i m trying to validate two date coming in the format 'DD-MON-YYYY' coming through PopUP-Calendar in two textboxes but unable to get required result I musing following function :
<script type="text/javascript">
function check(){
var SDate = document.form.previous_date.value;
var EDate = document.form.next_date.value;
if (SDate == '' || EDate == '') {
alert("Plesae enter both....");
return false;
}
var endDate =new Date.parse(EDate);
var startDate =new Date.parse.Date(SDate);
if(startDate > endDate)
{
alert("Please ensure that the End Date is greater than or equal to the Start Date.");
document.calldate.next_day.focus();
return false;
}
}
</script>
Thank In Advance
I m new in Javascript
i m trying to validate two date coming in the format 'DD-MON-YYYY' coming through PopUP-Calendar in two textboxes but unable to get required result I musing following function :
<script type="text/javascript">
function check(){
var SDate = document.form.previous_date.value;
var EDate = document.form.next_date.value;
if (SDate == '' || EDate == '') {
alert("Plesae enter both....");
return false;
}
var endDate =new Date.parse(EDate);
var startDate =new Date.parse.Date(SDate);
if(startDate > endDate)
{
alert("Please ensure that the End Date is greater than or equal to the Start Date.");
document.calldate.next_day.focus();
return false;
}
}
</script>
Thank In Advance
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Variable scope problem (C++)
- Total noob question (Database Design)
- Mailform error (PHP)
- hacktool.rootkit / backdoor.generic2.ppu issue (Viruses, Spyware and other Nasties)
- Calendar window is not coming for the Dynamic rows (JavaScript / DHTML / AJAX)
- Help with data validation on booking trip application... (MS Access and FileMaker Pro)
- Internet Explorer-OUT OF ORDER + More (Viruses, Spyware and other Nasties)
- BetterInternet, Start up Trojan, Aurora HELP!!! (Viruses, Spyware and other Nasties)
- Can Someone please check my project & comment/tips (C)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Accessing a class name?
- Next Thread: Preventing the delay when src attribute of the images set via javascript



Threaded Mode