do like that if u get 5 instead of 2 then in switch-
case statement write if u get 5 then set it to 2

if (cDepart_Date != null && !cDepart_Date.equals(""))
        {
          Date  lDdate = new Date(cDepart_Date);
          int lDepartFreq = lDdate.getDay();
          if (lDepartFreq == 0)
          lDepartFreq = 7 ;
          cDepartFreq = new Integer(lDepartFreq).toString();




I'm setting the date as 2/7/2001 (dd/mm/yyyy format)
which is monday
When I tried to print the current set day of the week
, it gives me 5
Thursday which is Thursday but I expect to be 2
(Monday).
 I do not know what wrong I'm doing.Can anyone explain
why this is happening
and how to get 2 instead of 5 ?

regards,
 Dharmendra


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to