i have the current date.below are the link by clicking i will get the date od before 1 day,before i month,before 1week...like this
<p></p>

<pre><code>                            &lt;td&gt;
                                &lt;a style="font-weight: bold;"&gt;Zoom:&lt;/a&gt;
                            &lt;/td&gt;
                            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
                            &lt;td&gt;
                                &lt;a href="javascript:void(0);" id="Custom" style="text-decoration: none;" onclick="callChart('Custom');"&gt;All&lt;/a&gt;
                            &lt;/td&gt;
                            &lt;td&gt; &lt;/td&gt;
                            &lt;td&gt;
                                &lt;a href="javascript:void(0);" id="Day" style="text-decoration: none;" onclick="callChart('Day');"&gt;1D&lt;/a&gt;
                            &lt;/td&gt;
                            &lt;td&gt; &lt;/td&gt;
                            &lt;td&gt;
                                &lt;a href="javascript:void(0);" id="Week" style="text-decoration: none;" onclick="callChart('Week');"&gt;1W&lt;/a&gt;
                            &lt;/td&gt;
                            &lt;td&gt; &lt;/td&gt;
                            &lt;td&gt;
                                &lt;a href="javascript:void(0);" id="Month" style="text-decoration: none;" onclick="callChart('Month');"&gt;1M&lt;/a&gt;
                            &lt;/td&gt;
                            &lt;td&gt; &lt;/td&gt;
                            &lt;td&gt;
                                &lt;a href="javascript:void(0);" id="Year" style="text-decoration: none;" onclick="callChart('Year');"&gt;1Y&lt;/a&gt;
                            &lt;/td&gt;

                            &lt;td align="center""  style="width: 263px; border: 20px; "&gt;Economiser  Operation&lt;/td&gt;
        &lt;td  align="right" style="width: 96px; "&gt;&lt;html:text name="AnalyticsFormBean"  property="startdate" styleClass="DatePicker"
            alt="{yearOrder:'desc',yearRange:90}"
            tabindex="1" style="width:100px;" /&gt;&lt;/td&gt;
            &lt;td align="right"&gt;
                             &lt;html:button  style="width:80px;" property ="Query" value="Apply"
                                onclick="if(CompareDates()){loadApply('Normal');}" /&gt;

                            &lt;/td&gt;


    &lt;/tr&gt;
</code></pre>
