Pls Help urgent with DATE problem

Dear Sir,
I have to make a classified system using asp and its almost
ready but.....,
i really have a big hope that someone helps me here
I have two columns to play with
1. strDate
2. StrDateDisplayAD
Once the user submits his AD I want the date to be inserted
into the date
column strDate which is working perfectly well
but at the same time I want the date to be added + 5 days and
insert into
the strDateDisplayAd column
for Example,
Lets say someone post his ad on 5th July, then the values in
the column must
be
strDate | StrDateDisplayAD
5/6/06 | 10/5/06
Thanks in advance

Use a hidden form element that has a value of 5 days added.
In ASP VBScriptit would look like this:
<input name="StrDateDisplayAD" type="hidden"
id="StrDateDisplayAD"
value="<%= FormatDateTime(DateAdd("d", 5, Now()),2)
%>">
Ken Ford
Adobe Community Expert
"Techy" <[email protected]> wrote in message
news:e883h2$it2$[email protected]..
> Dear Sir,
>
> I have to make a classified system using asp and its
almost ready
> but.....,
> i really have a big hope that someone helps me here
>
> I have two columns to play with
>
> 1. strDate
> 2. StrDateDisplayAD
>
> Once the user submits his AD I want the date to be
inserted into the date
> column strDate which is working perfectly well
>
> but at the same time I want the date to be added + 5
days and insert into
> the strDateDisplayAd column
>
> for Example,
>
> Lets say someone post his ad on 5th July, then the
values in the column
> must
> be
>
> strDate | StrDateDisplayAD
>
> 5/6/06 | 10/5/06
>
>
> Thanks in advance
>
>
>

Similar Messages

  • Major help needed with date problem

    hi everyone, I have been working on this problem for so long, my brain is completely fried, really. the part of the project I have listed is just one of larger program that I have all figured out; this is the last part and I am just struggling to come up with a start. I think i need to use a for loop, but not quite sure.
    HERE IS THE PROBLEM:
    (2)     Prompt the user for a premium amount (in dollars and cents, but assume the user does not enter the $ sign), a start date and an end date for a policy term, and an effective date for a policy cancellation. Dates should be entered with three separate prompts for year, month, and day, in that order. Month will be a number between 1 and 12, and year will have 4 digits. Assume any pair of dates is possible, between January 1, 1900 and December 31, 2200. You may assume that the user always enters a valid date. You may also assume that the user enters a start date that is before the end date. Assume the cancellation effective date is between the start and end dates. You may also assume that the premium amount the user enters is a valid number.
    (5)     Using the start date, end date, premium and a desired refund amount (entered by the user), calculate the cancellation effective date required to produce an amount equal to or slightly larger than the desired refund amount
    if anyone is looking for some major duke stars, please post here . . .

    (5)     Using the start date, end date, premium and a
    desired refund amount (entered by the user),
    calculate the cancellation effective date requiredto
    produce an amount equal to or slightly larger than
    the desired refund amountCan you describe in precise detail--clear enough so
    that somebody who had no idea about this problem or
    the process could do it--the steps you'd take to do
    this without regard to Java?If I understand correctly, you need to find out what percentage of their policy they want to use (the refund they want back tells you what percentage of the premium they want back, so the rest is what they want to use). Then use that percentage to calculate the number of days they would have to use the policy to get that refund (you already know the total days, so total days * percentage = days until refund). Then you just need to find out what day is that many days after the start day. that would be when they would cancel. Hopefully that makes sense. I am still trying to have it make sense for me. I can't figure out how to code this.

  • Pls help me with  Mac and had a trial  serial number problems

    Hi,
    I downloaded first the trial version of Photoshop, after 30 days finished but the icon still remained.
    Now, when purchased a creative suite 4 Designe premium, installed, all programs are fine, just the photoshop not working, asking for serial number but when I type the right numbers, doesn`t accept.
    What can I do? any idea?
    to uninstall the photoshop and install again?
    but if I have the other programs working and installed?

    Hi,thank you, that is fine, just not so quick but I resolved the problem alone.Thanks anyway you helped me.Eva
    Date: Sat, 1 Aug 2009 11:53:58 -0600
    From: [email protected]
    To: [email protected]
    Subject: Pls help me with  Mac and had a trial  serial number problems
    Hello, Eva. For CS4 problems, you need to ask in the Photoshop forum (this is the Photoshop Elements forum). It's here:
    http://forums.adobe.com/community/photoshop/photoshop_macintosh
    Good luck!
    >

  • Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.

    Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I  am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
    Pls explain me the steps for adding data from xml to B1 quotation step by step.
    thanks and regards
    Priya

    Hi,
    Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
    Thanks,
    Gordon

  • Can someone pls help me with this code

    The method createScreen() creates the first screen wherein the user makes a selection if he wants all the data ,in a range or single data.The problem comes in when the user makes a selection of single.that then displays the singleScreen() method.Then the user has to input a key data like date or invoice no on the basis of which all the information for that set of data is selected.Now if the user inputs a wrong key that does not exist for the first time the program says invalid entry of data,after u click ok on the option pane it prompts him to enter the data again.But since then whenever the user inputs wrong data the program says wrong data but after displaying the singlescreen again does not wait for input from the user it again flashes the option pane with the invalid entry message.and this goes on doubling everytime the user inputs wrong data.the second wrong entry of data flashes the error message twice,the third wrong entry flashes the option pane message 4 times and so on.What actually happens is it does not wait at the singlescreen() for user to input data ,it straight goes into displaying the JOptionPane message for wrong data entry so we have to click the optiion pane twice,four times and so on.
    Can someone pls help me with this!!!!!!!!!
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.util.*;
    public class MainMenu extends JFrame implements ActionListener,ItemListener{
    //class     
         FileReaderDemo1 fd=new FileReaderDemo1();
         FileReaderDemo1 fr;
         Swing1Win sw;
    //primary
         int monthkey=1,counter=0;
         boolean flag=false,splitflag=false;
         String selection,monthselection,dateselection="01",yearselection="00",s,searchcriteria="By Date",datekey,smonthkey,invoiceno;
    //arrays
         String singlesearcharray[];
         String[] monthlist={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"};
         String[] datelist=new String[31];
         String[] yearlist=new String[100];
         String[] searchlist={"By Date","By Invoiceno"};
    //collection
         Hashtable allinvoicesdata=new Hashtable();
         Vector data=new Vector();
         Enumeration keydata;
    //components
         JButton next=new JButton("NEXT>>");
         JComboBox month,date,year,search;
         JLabel bydate,byinvno,trial;
         JTextField yeartext,invtext;
         JPanel panel1,panel2,panel3,panel4;
         JRadioButton single,range,all;
         ButtonGroup group;
         JButton select=new JButton("SELECT");
    //frame and layout declarations
         JFrame jf;
         Container con;
         GridBagLayout gridbag=new GridBagLayout();
         GridBagConstraints gc=new GridBagConstraints();
    //constructor
         MainMenu(){
              jf=new JFrame();
              con=getContentPane();
              con.setLayout(null);
              fr=new FileReaderDemo1();
              createScreen();
              setSize(500,250);
              setLocation(250,250);
              setVisible(true);
    //This is thefirst screen displayed
         public void createScreen(){
              group=new ButtonGroup();
              single=new JRadioButton("SINGLE");
              range=new JRadioButton("RANGE");
              all=new JRadioButton("ALL");
              search=new JComboBox(searchlist);
              group.add(single);
              group.add(range);
              group.add(all);
              single.setBounds(100,50,100,20);
              search.setBounds(200,50,100,20);
              range.setBounds(100,90,100,20);
              all.setBounds(100,130,100,20);
              select.setBounds(200,200,100,20);
              con.add(single);
              con.add(search);
              con.add(range);
              con.add(all);
              con.add(select);
              search.setEnabled(false);
              single.addItemListener(this);
              search.addActionListener(new MyActionListener());     
              range.addItemListener(this);
              all.addItemListener(this);
              select.addActionListener(this);
         public class MyActionListener implements ActionListener{
              public void actionPerformed(ActionEvent a){
                   JComboBox cb=(JComboBox)a.getSource();
                   if(a.getSource().equals(month))
                        monthkey=((cb.getSelectedIndex())+1);
                   if(a.getSource().equals(date)){
                        dateselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(year))
                        yearselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(search)){
                        searchcriteria=(String)cb.getSelectedItem();
         public void itemStateChanged(ItemEvent ie){
              if(ie.getItem()==single){
                   selection="single";     
                   search.setEnabled(true);
              else if (ie.getItem()==all){
                   selection="all";
                   search.setEnabled(false);
              else if (ie.getItem()==range){
                   search.setEnabled(false);
         public void actionPerformed(ActionEvent ae){          
              if(ae.getSource().equals(select))
                        if(selection.equals("single")){
                             singleScreen();
                        if(selection.equals("all"))
                             sw=new Swing1Win();
              if(ae.getSource().equals(next)){
                   if(monthkey<9)
                        smonthkey="0"+monthkey;
                   System.out.println(smonthkey+"/"+dateselection+"/"+yearselection+"it prints this");
                   allinvoicesdata=fr.read(searchcriteria);
                   if (searchcriteria.equals("By Date")){
                        System.out.println("it goes in this");
                        singleinvoice(smonthkey+"/"+dateselection+"/"+yearselection);
                   else if (searchcriteria.equals("By Invoiceno")){
                        invoiceno=invtext.getText();
                        singleinvoice(invoiceno);
                   if (flag == false){
                        System.out.println("flag is false");
                        singleScreen();
                   else{
                   System.out.println("its in here");
                   singlesearcharray=new String[data.size()];
                   data.copyInto(singlesearcharray);
                   sw=new Swing1Win(singlesearcharray);
         public void singleinvoice(String searchdata){
              keydata=allinvoicesdata.keys();
              while(keydata.hasMoreElements()){
                        s=(String)keydata.nextElement();
                        if(s.equals(searchdata)){
                             System.out.println(s);
                             flag=true;
                             break;
              if (flag==true){
                   System.out.println("vector found");
                   System.exit(0);
                   data= ((Vector)(allinvoicesdata.get(s)));
              else{
                   JOptionPane.showMessageDialog(jf,"Invalid entry of date : choose again");     
         public void singleScreen(){
              System.out.println("its at the start");
              con.removeAll();
              SwingUtilities.updateComponentTreeUI(con);
              con.setLayout(null);
              counter=0;
              panel2=new JPanel(gridbag);
              bydate=new JLabel("By Date : ");
              byinvno=new JLabel("By Invoice No : ");
              dateComboBox();
              invtext=new JTextField(6);
              gc.gridx=0;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(month,gc);
              panel2.add(month);
              gc.gridx=1;
              gc.gridy=0;
              gridbag.setConstraints(date,gc);
              panel2.add(date);
              gc.gridx=2;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(year,gc);
              panel2.add(year);
              bydate.setBounds(100,30,60,20);
              con.add(bydate);
              panel2.setBounds(170,30,200,30);
              con.add(panel2);
              byinvno.setBounds(100,70,100,20);
              invtext.setBounds(200,70,50,20);
              con.add(byinvno);
              con.add(invtext);
              next.setBounds(300,200,100,20);
              con.add(next);
              if (searchcriteria.equals("By Invoiceno")){
                   month.setEnabled(false);
                   date.setEnabled(false);
                   year.setEnabled(false);
              else if(searchcriteria.equals("By Date")){
                   byinvno.setEnabled(false);
                   invtext.setEnabled(false);
              monthkey=1;
              dateselection="01";
              yearselection="00";
              month.addActionListener(new MyActionListener());
              date.addActionListener(new MyActionListener());
              year.addActionListener(new MyActionListener());
              next.addActionListener(this);
              invtext.addKeyListener(new KeyAdapter(){
                   public void keyTyped(KeyEvent ke){
                        char c=ke.getKeyChar();
                        if ((c == KeyEvent.VK_BACK_SPACE) ||(c == KeyEvent.VK_DELETE)){
                             System.out.println(counter+"before");
                             counter--;               
                             System.out.println(counter+"after");
                        else
                             counter++;
                        if(counter>6){
                             System.out.println(counter);
                             counter--;
                             ke.consume();
                        else                    
                        if(!((Character.isDigit(c) || (c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)))){
                             getToolkit().beep();
                             counter--;     
                             JOptionPane.showMessageDialog(null,"please enter numerical value");
                             ke.consume();
              System.out.println("its at the end");
         public void dateComboBox(){          
              for (int counter=0,day=01;day<=31;counter++,day++)
                   if(day<=9)
                        datelist[counter]="0"+String.valueOf(day);
                   else
                        datelist[counter]=String.valueOf(day);
              for(int counter=0,yr=00;yr<=99;yr++,counter++)
                   if(yr<=9)
                        yearlist[counter]="0"+String.valueOf(yr);
                   else
                        yearlist[counter]=String.valueOf(yr);
              month=new JComboBox(monthlist);
              date=new JComboBox(datelist);
              year=new JComboBox(yearlist);
         public static void main(String[] args){
              MainMenu mm=new MainMenu();
         public class WindowHandler extends WindowAdapter{
              public void windowClosing(WindowEvent we){
                   jf.dispose();
                   System.exit(0);
    }     

    Hi,
    I had a similar problem with a message dialog. Don't know if it is a bug, I was in a hurry and had no time to search the bug database... I found a solution by using keyPressed() and keyReleased() instead of keyTyped():
       private boolean pressed = false;
       public void keyPressed(KeyEvent e) {
          pressed = true;
       public void keyReleased(KeyEvent e) {
          if (!pressed) {
             e.consume();
             return;
          // Here you can test whatever key you want
       //...I don't know if it will help you, but it worked for me.
    Regards.

  • Pls Help me with my hp mini laptop

    Pls Help me with  my hp mini laptop
    system disabled
    [69005685]
    This question was solved.
    View Solution.

    Hi,
    Try entering:     76963201
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • My toshiba satellite e105-s1802 do not recognized my a4tech pocket usb hub pls help me with this?

    my toshiba satellite e105-s1802 do not recognized my a4tech pocket usb hub pls help me with this?

    I AM HAVING THE SAME PROBLEM WITH THE SAME MODEL. I GOT THE SERVICE
    MANUAL AND I'M THINKING TO OPEN IT AND SEE IF THERE'S SOME PHYSICAL BAD CONNECTION
    INSIDE. BUT LIKE YOU SAID.  IT'S ONLY THREE MONTHS OLD.!!! I DON'T WANT TO RUIN THE WARRANTEE.
    BUT THIS IS VERY FRUSTATING. I WANDER IF TOSHIBA DOES THIS ON PURPUSE.!!! KEEP IN TOUCH AND
    IF YOU NEED THE SERVICE MANUAL CONTACT ME AT [email protected]
          THANK YOU.!!!!

  • Need help urgently with conversion of tiff images(.odm) to pdf files...

    Hi Friends!!
    Currently we are working on a project which involves conversion of tiff image files to Pdf files. We are able to convert .tif files to .pdf files.(We are using iText libraries for this..)
    But the only problem we are facing is ---
    We have some .odm files which are multipage tiff files. But we are unable to convert them into .pdf files.
    Note:- Please note .odm is a proprietary extension given by Optix Document Management and Workflow Systems. We figured out that .odm works as a collection of .tif images.
    I searched a lot on the net but couldn't find any help, so, if anyone has any idea of how to go about doing this please let me know...
    Please email any suggestions to [email protected]
    Thanks in advance for your help,
    Rita

    I'm afraid I can't help much with your problem, but I think I can offer some advice on how to get better, faster answers here at this forum:
    First, don't flag your question as urgent, even if it is for you. Claiming urgency is very likely to be counter-productive: most forum regulars will simply ignore such messages as rude and selfish attempts to elicit immediate and special attention.
    Besides, unless the Symbionese Liberation Army is about to chase you over the edge of a cliff, your problem probably isn't as urgent as you think. :o)
    Second, don't ask people to reply by private email. Most Forum regulars believe solving problems should be a public, transparent process during which a first try at an answer can and should be corrected if someone more knowledgeable notices that it is incomplete or incorrect. Also, they get some of their reward for being respondents from being seen to be competent and knowledgeable by their peers (not to mention the possibility of collecting some of those precious Duke Dollars).
    Good luck!

  • I'm having trouble with the volume of my i phone 4s when using headphones, the sound will only appear when the volume is at its highest, any lower and all I hear is static. Can anyone help me with this problem? Much appreciated.

    Hi, I'm using a white iPhone 4s with 16gb memory and having some problems. Whenever I use earphones the sound will be heated when the volume is at the highest if I turn it down any lower all I hear is static. Can anyone help me with this problem as I would appreciate it much.

    Reset the device:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    No data is lost due to a reset.

  • I am stucked in settings page and not able to off ya go from that page pls help me with advise

    I AM NOT ABLE TO OPEN OTHER PAGES OR ANYTHING IN MY IPAD  A 1460 IT IS HANGED IN SETTING I AM ABLE TO OPEN THAT PAGE ONLY .I M NOT EVEN ABLE TO OFF THE I PAD PLS HELP ME WITH ADVICE

    Have you tried resetting yor iPad?
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    No data will be lost.

  • Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how

    Can anyone help me with a problem i am having with my music on my iPhone 4S. I have put alot of Compilation CDs in my library on iTunes. I download these tracks onto my phone, everything is ok so far. Now, this is what is niggling me and I don.t know how to resolve it. This is my problem: 
    Have downloaded for example: Queen – Bohemium Rhapsody from a compilation album as well as a few complete Queen Album CDs into the iTunes library and then put them into playlists,
    When I go onto my phone and select Queen on the MUSIC app using Songs tab at the bottom of the screen it will display all Queen songs and their resective Alum pics, that is all those not in a complilation album, .
    If I know the song title I can select the songs tab and find the song that way,
    I’ve tried fiddling with the settings in the iTunes app by going to ‘get info’ tab and trying to sort the problem out that way but am not having much luck.What I want the phone to do is show, for example all Queens songs including those in compilation albums. Can this be done, would be grateful for any ideas on how it can be done, that is if ic can be done, any ideas
    Thanks for your help

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • My iphone 4s is deactivated, the phone is asking for my account and password but i forgot my apple id password. and i can't reset it. can someone help me with my problem? thanks.

    I have an iPhone 4s and it is now deactivated. the phone is asking for my apple account and password. but i have forgotten my password. i tried to reset it on iforgot.apple.com, and when i entered my apple id the next thing that appeared on screen is that i have to chose either email verification or security questions. then i click the security question then it asked about my birthday. there where only asking the month and day. then i entered my birthday which is March 8.
    so can somebody help me with this problem?
    my apple id account is "[email protected]"
    thanks in advance!

    The email you should NOT have published, is your iCloud, not Apple ID
    You Apple ID is a valid email address
    This is a user forum, not Apple customer service.
    I gather the security question did not work.
    If you have an email address, why not use that?
    If this fails you have to contact support and schedule help.

  • I cannot install itunes on my windown 7 laptop.  Error says "computer not modified".  Please help me with this problem.

    I cannot install Itunes and Icloud on my Sony Vaio Laptop - Window 7.  Error says " computer/system not modified".  Please help me with this problem. 

    Hello there, jag123059.
    The following Knowledge Base article offers up some great steps to follow for resolving issues with installing iTunes:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    can someone pls help me with java on my macbook pro because after i download the mountain lion java has died and i need java to see streaming quotes from stock market

    Java is no longer included in Mac OS X by default. If you want Java, you will have to install it.
    However, note that you should think twice before installing Java for such a trivial need as looking at stock market quotes. There are other ways to get that information that don't involve Java, and using Java in your web browser is a HUGE security risk right now. Java has been vulnerable to attack almost constantly for the last year, and has become a very popular, frequently used method for getting malware installed via "drive-by downloads." You really, truly don't want to be using it. See:
    Java is vulnerable… Again?!
    http://java-0day.com

  • HT1338 Could you please help me with the problem. I have mac os 10.7.4 on my macbook pro retina and want to update it to 10.7.5. I had been waiting for 2 hours to do it, but then it appeared that it was impossible. What should I do?

    Could you please help me with the problem. I have macbook with retina with mac os 10.7.4 ann want to update it to mac os 10.7.5. I had been waiting for 2 hours to do it and had tried 3 times but it appeared that it was impossible. What should I do?

    You can download the standalone updates:
    OS X Lion Update 10.7.5 (Client Combo)
    OS X Lion 10.7.5 Supplemental Update

Maybe you are looking for

  • Flash Drive & Creation Date problems

    Hello, I have had several flash drives (different models and brands), all formatted for MS-DOS, since I need to use them on both Mac & PC... when they are formatted this way my notebook (12 inch Powerbook G4 1.33GHZ, 10.3.9) reads it as having a crea

  • Question about alpha backgrounds

    Hello, I am just learning Motion and a bit confused. I am trying to drag in a picture that has a transparent alpha section. When I drag it onto the canvas the alpha background is black as expected, but when I drag the photo onto the timeline (which i

  • A little error in J2EETutorial

    "Serverlet Life Circule", file:///C:/j2eetutorial14/doc/Servlets4.html#wp73579 There is an error in this section: public void contextDestroyed(ServletContextEvent event) { context = event.getServletContext(); BookDBAO bookDB = context.getAttribute("b

  • Apache 2

    Does Mac supply an organized download or upgrade to Apache2? Does anyone know how to redirect a LimitRequestBody Error on Apache2. It seems that once size has been exceeded it drops the connection and gives the IE error page cannot be found.

  • Weird half-disconnect

    Good evening, ladies! Since my old Wlan USB Stick broke I ordered a new one which should run on linux natively (TP-Link TL-WN321G with a Realtek rt73 chip (I think)). Thats basically true - linux drivers are available and thanks to pacman quick insta