Advertisement

07.14.2006 at 12:30AM PDT, ID: 21919181
[x]
Attachment Details

automatically populate current month

Asked by daijames in JavaScript

Tags: , ,

I have a search box which in my case displays the current date (day) + 5 days in advance.
The problem is I need to get it to also display the month and year. My database developers have thrown a spanner in the works by including the Year and month together in one field  ie September 2006,
value= 200609.
The name of the parameter I have to send in the string is ArrivalMonthYear  I include the script i use at present.
At the moment, every month I am going through all my pages and deleting the expired month. Hope somebody can help

script

<!---
 function initDate()
 {
   var now = new Date();
   var dd = now.getDate();

   if (dd < 10)
    {
      dd == 0 + dd;
    }
   
     if ((dd>=29 ) || ((dd>=27 )))
     {
     document.GTSL.ArrivalDay.selectedIndex = dd-dd;
    }
   else
    {
         document.GTSL.ArrivalDay.selectedIndex=dd+5;
   }
}
//--->
     
Start Free Trial
[+][-]07.14.2006 at 01:09AM PDT, ID: 17106448

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2006 at 01:38AM PDT, ID: 17106545

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2006 at 01:40AM PDT, ID: 17106556

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2006 at 04:13AM PDT, ID: 17107140

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2006 at 04:35AM PDT, ID: 17107234

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2006 at 05:48AM PDT, ID: 17107666

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2006 at 06:55AM PDT, ID: 17108206

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2006 at 07:44AM PDT, ID: 17108685

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: month, current, populate
Sign Up Now!
Solution Provided By: mplungjan
Participating Experts: 2
Solution Grade: B
 
 
[+][-]07.15.2006 at 09:36AM PDT, ID: 17114826

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2006 at 09:59AM PDT, ID: 17114894

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2006 at 11:25AM PDT, ID: 17115252

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32