Question on Calendar

Hi Experts,
I have created WD screen. It uses Calendar UI element and displays 4 months calendar (Current month and next three months). For example if I will run program today, it will display calendar of  Aug 2009, Sep 2009, Oct 2009 and Dec 2009. I am calliing RFC and displaying back end data
The WD screen have following details:
Travel Start date
Sometimes, the travel date is 3 years (Aug 2006) back. If such cases arise, I would like to show the calendar of Aug 2006, Sep 2006, Oct 2006 and Dec 2006.
How I can do so?
Regards,
Gary

Thanks Armin,
I have another question. User will click on some date in calender. The calendar is in one DC. I have used the calendar DC in other project. How we can pass the selected value of calendar DC to other project.
Regards

Similar Messages

  • Few questions about Calendar / SimpleDateFormat classes

    Hi.
    I have few questions about Calendar class:
    1. How can I get only date representation (without the time)?
    after doing:
    Calendar cal = Calendar.getInstance();
    I tried to clear unecessary fields:
    cal.clear(Calendar.SECOND);
    cal.clear(Calendar.MINUTE);
    cal.clear(Calendar.HOUR_OF_DAY);
    But after printing the time, it seems that the HOUR was not cleared:
    SimpleDateFormat sdf1 = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
    System.out.println(sdf1.format(cal.getTime()));
    ---> 03/11/2004 17:00:00
    Am I missing somthing?
    2. I want to make sure that two different formats couldn't be compared. i.e., if I'll try to parse one String according to different format -- ParseException will be thrown.
    String date = "19/04/2004 13:06:10";
    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    Date dateObj = sdf.parse(date);
    However, even though that formats are different, no exception is thrown and the return Date is 19/04/2004 00:00:00.
    How can I cause to exception to be thrown if formats are not identical?
    Thanks in advanced

    The Calendar class has a few of what Microsoft would call 'features'. :^)
    To clear the time, call:
    calendar.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY), 0, 0, 0);
    If you want 'pessimistic' rather than 'optimistic' date parsing, you have two options:
    1) Call calendar.setLenient(false);
    See if that is strict enough for your needs, otherwise:
    2) Write code to ensure a stricter parsing of the string passed in. For example, you could very simply check the length of the string to determine if time data is also present.
    When parsing, a string like '02/29/02' would parse to the date '03/01/02'. Setting lenient to false may fix this, but the surest way is to do some testing and then make the parsing more pessimistic where it suits your needs.
    - Saish
    "My karma ran over your dogma." - Anon

  • Odd question about calendar accounts

    I have a user who has several users that want to use a calendar account for scheduling. However, they do not want to use their own calendar accounts and then open the scheduling account - the claim is that there are too many clicks.
    So my main user asked the following question:
    Is there a way to designate two passwords for a calendar account, with each password allowing different privileges when signed in?
    I don't think this is possible, but I wanted to confirm this.
    Thank you!

    Michael,
    I think that it is not possible. In the OID a user has only one password field. There is no standard way to achieve what your uer wants. So it has to be programmed, but I don't know how
    Fred

  • My question On Calendar or Data

    Hi, I am making a query to a table: T_HR_CONTRACT,
    which stores the labor contract of a company.
    END_DATE is a field of table T_HR_CONTRACT.
    Now, I need to search the contract end in each month.
    select * from T_HR_CONTRACT where fEND_DATE >= theStartDayOfCurrenctMonth and fEND_DATE < theStartDayOfNextMonth;
    or
    select * from T_HR_CONTRACT where fEND_DATE >= theStartDayOfCurrenctMonth and fEND_DATE <= theLastDayOfCurrenctMonth;
    How can I utilize the java class Calendar or Date to get
    the first day of current month,
    the last day of current month,
    the first day of next month?
    I am new to Calendar and Date class. Please give me some help!
    Thank you!

    GregorianCalendar c = new GregorianCalendar();
    // That gets a Calendar object containing the current date and time.
    c.set(Calendar.DAY_OF_MONTH, 1);
    // As you might guess that sets the Calendar's day to be the first of the month.
    c.set(Calendar.DAY_OF_MONTH, c.getActualMaximum(Calendar.DAY_OF_MONTH));
    // That sets the Calendar's day to be the first of the month.
    c.add(Calendar.DAY_OF_MONTH, 1);
    // That adds 1 to the day... what does that give you?You could have learned a lot of this by reading the examples given in the API documentation for Calendar and GregorianCalendar. Try it next time, you may find it faster than waiting for some random person to answer your question.

  • HT4759 Question re calendar sharing and syncing

    I am currently using Google Drive, Google Calendars and a windowns operating system, Intewrnet Explorer for emails . Can I sync and share my google calendars with the ipad using icloud?

    Hi Darren,
    Sorry no one was able to help you. Not sure I can but I'll try
    1) Try AppleCare if you can. They might help though I doubt it.
    2) If you are near an Apple Store of dealer they might be able to help.
    3) You might try to find a local or inline user group.
    4) Look at the top of this iCal list as a topic regarding sharing is happening and it might lead to leads about how to lock some calendars.
    5) Unless you have a backup, I doubt you'll be able to recover what has been deleted.
    6) Shoot your question by the ical forum (or maybe the OSX forum)at macosxhints: http://forums.macosxhints.com/showthread.php?t=43128
    Bear in mind, iCal isn't really designed to be a mission critical (at this point) so I don't think I'd run my business on it if I wasn't a very capable user.
    You'll want to let folks know what version of OSX and iCal you are running as things have changed.
    Some of us on this list are trying to better understand how iCal works so maybe we'll be able to offer you some help later. You might try tracking down the various iCal files and see what you can do (do this under a different user for experimenting). The locations depend on what version you are running. You might be able to "lock" some aspects.
    You might also want to consider a more robust application for your needs.
    And your folks might need some more training or more help than you can give them.

  • General question re: calendar on iphone

    what is the difference between the outlook calendar and the home calendar on my iphone. i don't know which calendar to schedule. i've lost calendar info on this phone from syncing and i don't want this to happen again. thanks!

    It is designed to sync both ways. Any change made on either should be reflected on the other. Take a look at the manual and see if you have it set up properly.
    http://manuals.info.apple.com/enUS/iPhone_UserGuide.pdf

  • Switching, quick question, google calendar

    ive been using google cal, now im getting my macbook and will porbably want to use ical for synching with my cell. will i have to manually input everything into ical or can i import from google cal. or at least vice versa?
    any help is appreciated, thanks!

    This set of instructions is 'buried' in the Help Center at Google:
    How do I export my Google Calendar data?
    To export Google Calendar content, just follow these steps:
    1. Under "Calendars" in the left column, click on the down-arrow button next to the appropriate calendar, then select "Calendar settings." (Alternatively, click on "Manage Calendars" under "Calendars" in the left column, then click on the name of the appropriate calendar.)
    2. Click on the "ICAL" button under "Private Address" and click on the displayed URL.
    3. Save the exported file to the desired folder on your computer.
    4. Following the instruction on the calendar application of your choice, import the file you exported from Google Calendar to the calendar application.
    See http://www.google.com/support/calendar/bin/answer.py?answer=37111&topic=8566

  • My Question On Calendar and Date

    Hi, I am making a query to a table: T_HR_CONTRACT,
    which stores the labor contract of a company.
    END_DATE is a field of table T_HR_CONTRACT. Its type is date.
    Now, I need to search the contract end in each month.
    select * from T_HR_CONTRACT where fEND_DATE >= theStartDayOfCurrenctMonth and fEND_DATE < theStartDayOfNextMonth;
    or
    select * from T_HR_CONTRACT where fEND_DATE >= theStartDayOfCurrenctMonth and fEND_DATE <= theLastDayOfCurrenctMonth;
    How can I utilize the java class Calendar or Date to get
    the first day of current month,
    the last day of current month,
    the first day of next month?
    I am new to Calendar and Date class. Please give me some help!

    Ok, I have solve the problem as following:
    //get the first day of this month, by using StringBuffer, we can enhance
    //the effiency
    StringBuffer today = new StringBuffer();
    Calendar rightNow = Calendar.getInstance();
    today.append(rightNow.get(rightNow.YEAR));
    today.append("-");
    today.append((rightNow.get(rightNow.MONTH) + 1));
    today.append("-01");
    String todayDate = today.toString();
    //get the first day of next month
    StringBuffer next = new StringBuffer();
    //if the month is December, then get the first day of next year!
    if(rightNow.get(rightNow.MONTH) == 11)
    next.append(rightNow.get(rightNow.YEAR) + 1);
    next.append("-01-01");
    else
    next.append(rightNow.get(rightNow.YEAR));
    next.append("-");
    next.append(rightNow.get(rightNow.MONTH) + 2);
    next.append("-01");
    String nextDate = next.toString();

  • Question. Calendar.ics.

    Calendar.ics.
    I am using IOS 6.0.1 (IPhone 3s and IPhone 4).
    I am connectet to my job e-mail (Outlook Ezchange 2010).
    When I receive an e-mail on my IPhone with an attached file, Calendar.ics I am unable to open it. What kind of settings do I have to do?

    Thank you for your feedback I will pass it on, but as I understand the default calendar can only show different colors for different calendars, not sub-calendars.
     - Community Manager Sony Xperia Support Forum
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Question about Calendars

    I have put together a calendar for a very dear Italian friend, in which I have used Italian to describe the images. Unfortunately, however, it looks like I am not able to change the language of the actual calendar, so that also could appear in Italian. No doubt someone can confirm that this is so, or else advise how I can make the necessary changes.
    Many thanks.
    Peter

    To change the Language of the Calendar you will need to change the System Language, which you can di in SystemPreferences.
    Regards
    TD

  • T/X Questions (Internet & Calendar)

    moving this off-topic thread to the Palm OS hardware board
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

    It is probably due to the Public vs. Private setting on your online sharing - see http://discussions.apple.com/thread.jspa?messageID=5934737&#6171814

  • Question re: calendar alerts on the original iPad

    How do I turn off iCal alerts on the original iPad?  We just upgarded to Mountain Lion and now every time we create an event it shows up on the iPad with an alert.  We've turned off alerts in Settings, but to no avail.  Can anyone help?  Thanks.

    Same problem. Most annoying. Can't find any solution. I can't believe it is intentional.

  • ICal question; my calendar displays the week beginning on Mondays, but when I print it, the week begins on Tuesdays...how can I fix this?

    My iCal display shows the week beginning on Mondays, but when I print it, the week starts on Tuesdays.  How can I fix this?

    Grrrrr only just upgraded to Yosemite and I gather from the above posts that this glitch has still not been sorted out!  Have to go to settings and set start of week to Sunday to get it to print starting Monday - that's mad! Come on Apple sort it out.  Have to keep switching back and forth as I have to print out iCal for my accounts.  Cross face

  • Viewing/sharing outlook calendars in ical

    I am trying to view a colleagues outlook calendar in ical. I've gone through the process of sharing and adding via the outlook web app and i can see their calendar fine via web browser. I'm struggling to see it in iCal however. I go to add the calendar to my iMac calendar via  calendar > preferences > accounts > delegation. I type in their email address and it pops up as they're a contact/we're on the same network. I add them and then in the delegation list they appear as 'greyed out'. I've gone through this process with all of my colleagues, some it works for and some it doesn't. Sometimes some of them are greyed out and other times they are there and let me tick 'show'.
    All calendars are visible and working via outlook web app. Only some let me see them in iCal.
    This is very frustrating! Anyone have any solutions?

    Following thread could help your question.
    outlook calendar sync with Ical mavericks, outlook calendar sync with Ical maverik

  • ADF: Calendar

    Hi all,
    I'm using JDev 11.1.2.0 and I'm having a couple of question concerning calendar component.
    1) Is there any way to present an event as an all-day event?
    Even when the returned VO record has only date (dd/mm/yyyy - NO time at all), it still shows by default 12:00am before the event
    2) Regardless of the above issue, can I hide time for all events?
    BR
    Apostolos

    Hi,
    Welcome to OTN. Always mention your JDev version (Check out this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56)
    Check this out : http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/calendar.jspx
    af|calendar::month-grid-cell:active-day is what you would need to skin.
    -Arun

Maybe you are looking for

  • How can I make the external hard drive my default to save everything on it?

    Hi everyone, I have a new Macbook with retina but I had to buy the one with lower Flash Disk space and faster processor, but when I realized that I could buy external hard drives I bought one, so I was wondering if I could change the default Flash Dr

  • Forecast for the current month

    Hello, So we have a monthly forecast entered in SAP B1. When we run MRP, we use that forecast. However, for some reason current month's forecast is never taken into account. Example: today is May 6th and the forecast for May is say 200 cases of item

  • Lost calender and contacts in Outlook

    I followed the instructions to the letter to migrate to BTmail from Bt Yahoo mail and although my inbox and sent emails in Outlook eventually re-appeared my Outlook contacts and calender have vanished. I work for myself and had 3 months worth of futu

  • 45W adapter reading as 50W in system profiler

    Hi, When using my 45W adapter, I've noticed that in my system profiler, under AC Charger Information, it says "AC Charger (Watts): 50." Does anyone know if this is normal, or if perhaps this could be causing my battery's full charge capacity to be di

  • Attempt to create & implement a domain which may hold ArrayList SelectItem

    IDE used - JDeveloper 11.1.1.3 Hi, I tried to create a new domoan with the following class *public class SelectItemList implements DomainInterface, Serializable {* private ArrayList<SelectItem> array; private ArrayList<SelectItem> lst; *public Select