Help in finding all sundays of an year

hi all,
When we seletc a particular year,Can I be able to get the all the sundays of that year?I think using Calendar instance we can do that.but don't have an idea.Someone got faced the same requirement,Pls let me give some idea
thanx

u cn wrt it on ppr n ndrstnd, bt frst read teh API 2 chk wot mthods u cn use.
Seriously, please try to write clearer questions in the future, if the question is structured you have bigger chance that the answer will be structured and clearer.
About the specific case you are trying to solve - obtain a calendar instance, then use the appropriate set(...) methods to set it to the fist Sunday of the first week in the year you want. Stop here and test that this works as expected - you can check it using some calendar (application or paper, whatever you prefer).
After that you can add weeks and filter the dates the way you want to meet the requirements, e.g. stop adding when you go into the next year.
Mike

Similar Messages

  • When i click on help in finder (all topics) I get no response, any suggestions?

    When i click on help in finder (all topics) I get no response, any suggestions?

    Move these three plist files from /Users/username/Library/Preferences/ to the Desktop, OPTION-click & hold the Finder's Dock icon, and select Relaunch. Now check Help. If it now works, delete the moved files.

  • I need help in finding all the new fontsin iPad 2 using iOS  5

    I need help in finding all the new fonts in ipad 2 using ios 5

    You cannot change the email font. You can make it bold, italics and underline the type, but Helvetica is your only choice in the mail app.
    In the notes app you have 3 choice Noteworthy, Helvetica and Marker Felt. The font can be changed in Settings>Notes>Font.
    You can only use fonts that are built into the app that you are using at the time. You cannot pick and choose fonts from a list of all of the fonts that may be on the iPad but only from the list of fonts that the app allows.

  • Reg: sql query that prints all sundays in the year

    Hi all,
    Please give me sql query that prints all sundays in year. And when ever we execute that query then that will prints the sysdate(that is execution date).
    Thanks in Advance,
    -prasad.
    Edited by: prasad_orcl on Jun 5, 2009 9:13 PM

    Hi,
    Plz try this and let me know this works or not...
    SELECT DATE DATES,TO_CHAR(DATE,'DAY') DAYS FROM FISCAL_CALENDAR
    WHERE DATE_YEAR = 2009 AND
    DATE BETWEEN TRUNC(SYSDATE,'YEAR') AND
    ADD_MONTHS(TRUNC(SYSDATE,'YEAR'),12) -1 AND
    TRIM(TO_CHAR(DATE,'DAY')) = 'SUNDAY'
    ORDER BY DATE
    OUTPUT:
    DATES     DAYS
    1/4/2009     SUNDAY
    1/11/2009     SUNDAY
    1/18/2009     SUNDAY
    1/25/2009     SUNDAY
    2/1/2009     SUNDAY
    2/8/2009     SUNDAY
    2/15/2009     SUNDAY
    2/22/2009     SUNDAY
    3/1/2009     SUNDAY
    3/8/2009     SUNDAY
    3/15/2009     SUNDAY
    3/22/2009     SUNDAY
    3/29/2009     SUNDAY
    4/5/2009     SUNDAY
    4/12/2009     SUNDAY
    4/19/2009     SUNDAY
    4/26/2009     SUNDAY
    5/3/2009     SUNDAY
    5/10/2009     SUNDAY
    5/17/2009     SUNDAY
    5/24/2009     SUNDAY
    5/31/2009     SUNDAY
    6/7/2009     SUNDAY
    6/14/2009     SUNDAY
    6/21/2009     SUNDAY
    6/28/2009     SUNDAY
    7/5/2009     SUNDAY
    7/12/2009     SUNDAY
    7/19/2009     SUNDAY
    7/26/2009     SUNDAY
    8/2/2009     SUNDAY
    8/9/2009     SUNDAY
    8/16/2009     SUNDAY
    8/23/2009     SUNDAY
    8/30/2009     SUNDAY
    9/6/2009     SUNDAY
    9/13/2009     SUNDAY
    9/20/2009     SUNDAY
    9/27/2009     SUNDAY
    10/4/2009     SUNDAY
    10/11/2009SUNDAY
    10/18/2009SUNDAY
    10/25/2009SUNDAY
    11/1/2009     SUNDAY
    11/8/2009     SUNDAY
    11/15/2009SUNDAY
    11/22/2009SUNDAY
    11/29/2009SUNDAY
    12/6/2009     SUNDAY
    12/13/2009SUNDAY
    12/20/2009SUNDAY
    12/27/2009SUNDAY
    Regards
    Thiyag

  • Finding all Sunday in a month

    Dear Community memeber;
    Hope all will be fine. I have a query which I am un-able to resolve. The query is that; I want to findout those date which are comming on Sunday in a month. Like I give month JUN-2010. it should be show me all date which occure on sunday.
    Thanks in advance.

    How abt dis..
    select dt from
    select trunc(sysdate,'mm')+level-1 dt from dual
    connect by level < to_char(last_day(trunc(sysdate,'mm')),'dd')+1
    )where to_char(dt,'dy') = 'sun';
    and a small block
    declare
         l_last_day     number;     
         l_next_sunday     date;
         l_first_sunday     date;
         j number;
    begin
         select     next_day(trunc(sysdate,'mm'),'sunday')
         into     l_first_sunday
         from     dual;
         dbms_output.put_line('first sunday is : '||l_first_sunday);
         j := to_number(to_char(to_date(l_first_sunday,'dd-mm-yyyy'),'dd'));
         for i in to_number(to_char(to_date(l_first_sunday,'dd-mm-yyyy'),'dd')) .. to_number(to_char(last_day(trunc(sysdate,'mm')),'dd'))
         loop
              j := j+7;
              exit when j > to_number(to_char(last_day(trunc(sysdate,'mm')),'dd'));          
              dbms_output.put_line('value of j : '||j);
              select     to_date(j||'-'||to_char(sysdate,'mm-yyyy'),'dd-mm-yyyy')
              into     l_next_sunday
              from     dual;
              dbms_output.put_line('Next sunday is : '||to_char(l_next_sunday,'dd-mon-yyyy'));
         end loop;
    end;

  • How do I help iTunes find all my music again, all at once?

    This is probably a rookie question but I'm trying to work it out.
    I'm getting the exclamation point problem - can't find the tracks. I know how to direct it, but I don't have the patience to do this to every track in my library. In advanced prefs the library is indicated and yet iTunes suddenly can't find anything.
    Will consolidate music fix this? In the past I think the only way I fixed this was basically starting over by deleting my library file and re-adding everything to iTunes. It took forever, and I lost all the ratings and play counts, playlists, etc. It takes time to build all that up. I thought there was an easier fix.
    Please refresh my memory. Thanks.

    jsunem wrote:
    So what are the implications of creating a new library file, if that's what I have to do? What will I lose in creating a new one?
    try something else first. in the iTunes folder, there should be a folder +previous libraries+. rename your current lib and move the latest lib from the previous folder to the current location. launch iTunes with the option key pressed and click +choose library+
    navigate to that previous lib you just moved. if you're lucky you haven't lost too much and have to repopulate iTunes only with a limited number of files.
    any joy ?

  • Qurey to get all the sundays in a year

    Hello,
    Can anyone help me in building a qurey that returns all the sundays in a year (from 01-Jan to 31-Dec)?
    I'll be grateful.
    Hasan.

    create or replace type sunday_row as object (sunday date);
    create or replace type sunday_table as table of sunday_row;
    create or replace function sundays (year_in in varchar2)
    return sunday_table
    pipelined
    is
    outrow sunday_row := sunday_row (sysdate);
    day_of_month_n number(1);
    sunday_d date;
    begin
    day_of_month_n := to_number(to_char(next_day (to_date('01-JAN-'||year_in, 'DD-MON-YYYY'), 'Sunday'), 'DD'));
    if day_of_month_n = 8 then day_of_month_n := 1; end if;
    sunday_d := to_date(to_char(day_of_month_n)||'-JAN-'||year_in, 'DD-MON-YYYY');
    while to_char(sunday_d, 'YYYY') = year_in
    loop
    outrow.sunday := sunday_d;
    pipe row(outrow);
    sunday_d := sunday_d + 7;
    end loop;
    return;
    end;
    select sunday from table(sundays('1996'));
    SUNDAY
    07/01/1996
    14/01/1996
    21/01/1996
    15/12/1996
    22/12/1996
    29/12/1996
    AMM

  • Can anyone help me find a song I heard over and over in St. Lucia in April, 2007?  It was a reggae or soca song that was played regularly in the resort we stayed at and all over the island where we visited.  I need a few options to listen to and confirm.

    Can anyone help me find a song I heard over and over in St. Lucia in April, 2007? It was a reggae or soca song that was played regularly in the resort we stayed at and all over the island where we visited.

    SeanD - message sent - any chance of a follow up
    Getting Worse
    . Best Effort Test: -provides background information.
    Download Speed
    13083 Kbps
    0 Kbps
    24198 Kbps
    Max Achievable Speed
    > Download speedachieved during the test was - 13083 Kbps
     For your connection, the acceptable range of speedsis 12000-24198 Kbps .
     Additional Information:
     IP Profile for your line is -24198 Kbps
    2. Upstream Test: -provides background information.
    Upload Speed
    1607 Kbps
    0 Kbps
    2000 Kbps
    Max Achievable Speed
    >Upload speed achieved during the test was - 1607 Kbps
     Additional Information:
     Upstream Rate IP profile on your line is - 2000 Kbps
    We were unable to identify any performance problem with your service at this time.

  • When looking at my "About This Mac" it says that I have 60gb of space left on my hard drive, but when I go into finder to find all of these files there is not 300gb worth in anything I search, even searching, "All files on the Mac". Help!?

    When looking at my "About This Mac" it says that I have 60gb of space left on my hard drive, but when I go into finder to find all of these files there is not 300gb worth in anything I search, even searching, "All files on the Mac". Help!?
    It says I have over 150 gigs of video on my hard drive. But I have gone through and deleted almost all of what shows up, still it says there is roughly the same amount on the hard drive. Where are these files? I want to delete them so I can have my hard drive clear.
    Thanks for your help guys!

    Quote from the article.
    Time Machine in OS X Lion includes a new feature called "local snapshots" that keeps copies of files you create, modify or delete on your internal disk. Local snapshots compliment regular Time Machine backups (that are stored on your external disk or Time Capsule) giving you a "safety net" for times when you might be away from your external backup disk or Time Capsule and accidentally delete a file.
    So what makes a notebook any different then a desktop, other then with a desktop you might have your tm backup drive connected all the time.
    The object here is to not indiscriminately delete files you need or want to keep. I personally have never deleted a file I wanted to keep.
    In essence a backup is for catastrophic failure of your system. So it can be restored once that failure has been fixed. Not because you go in willy nilly and start deleting files.

  • How do I find all photos that can be '"reverted to original"? Help please!

    Hi. I hope that someone can help me with this!
    I am trying to go through my iPhoto Library of about 1000 photos and find all of the photos that have the option to be "reverted to original", ie. I have made changes to them. I realise that I could go through them one by one, but I am trying to avoid that!
    I have realised recently that I should duplicate a photo before changing it, so that I leave the original untouched. However this doesn't help me with all of the old ones that I DIDN'T duplicate.
    Is there an Applescript or a method of finding all of the old photos that I am looking for?
    Thanks so much in advance for any help,
    Fleur

    I don't think it can be done from within iPhoto but there's a way you can do it from outside. First download and launch QPict. Then do the following;
    1 - open your iPhoto Library folder and type Command-F.
    2 - in the search window create these two search criteria:
    a - Kind is Folder
    b - Name contains Original
    3 - In the search results window click on the size column to separate the empty folders from those with files in them.
    4 - select all of the folder that are not empty and drag into the open window of QPict.
    That will open the original files in QPict so you can view them there and compare to those in iPhoto. Just remember do not move any of those folders out of the iPhoto Library folder. Just move them into the open window of QPict.
    G4 DP-1G, 1G RAM, 22 Display, 2-80G HD, QT 7.0.3P   Mac OS X (10.4.3)   Canon S400, i850 & LIDE 50, Epson R200, 2G Nano

  • I have a 2009 MB Pro. I have been trying to do some cleaning of files and discovered that in Finder, All Images, I am experiencing a frustrating problem. I spent a few hours trashing over 4K images and within a few hours, I had as many more. Help!

    I have a 2009 MB Pro. I have been trying to do some cleaning of files and discovered that in Finder, All Images, I am experiencing a frustrating problem. I spent a few hours trashing over 4K images and within a few hours, I had as many more.  I did a couple of thousand trashed images and half hour later, more arrived. There are a lot of images that seem off the internet, including gif.s, png.s. Help!

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • How to find how many sundays in a year

    Hi friends...
    how to find the how many sundays in a year?
    can u give me the query?

    Sybrand's approach can still be made to work. His formula actually calculates the number of weeks between the first and last Sunday of the year, so he needs to add one to get the number of Sundays (or calculate the number of weeks between to the first sunday of the following year). It also needs a tweak to deal with cases when the year starts or ends on a Sunday because next_day will return the following Sunday.
    with t as (
    select add_months(trunc(sysdate,'YEAR'),12*(level-20)) as yr from dual connect by level <= 40
    select extract(YEAR from yr) as yr,
    (next_day(add_months(yr, 12)-1,'SUN')
    next_day(yr-1, 'SUN'))/7 as sundays
    from t
    order by yr
    YR                     SUNDAYS
    1991                   52
    1992                   52
    1993                   52
    1994                   52
    1995                   53
    1996                   52
    1997                   52
    1998                   52
    1999                   52
    2000                   53
    2001                   52
    2002                   52
    2003                   52
    2004                   52
    2005                   52
    2006                   53
    2007                   52
    2008                   52
    2009                   52
    2010                   52
    2011                   52
    2012                   53
    2013                   52
    2014                   52
    2015                   52
    2016                   52
    2017                   53
    2018                   52
    2019                   52
    2020                   52
    2021                   52
    2022                   52
    2023                   53
    2024                   52
    2025                   52
    2026                   52
    2027                   52
    2028                   53
    2029                   52
    2030                   52Regards,
    Bob

  • Please help, finding all zip codes within a given radius.

    I have a table which contains zip, city, state, latdec, longdec, latrad, longrad.
    From search screen, user want's to find all zip code's, within
    10 mile radius of his zip code.
    I came up with following sql but it is not correct:
    First, find his latdec, longdec from his zipcode.
    Then add radius to those values and do select as follows:
    select zip,
    latdec, longdec,
    city, state, latrad, longrad
    from zip_coord
    where latdec >= (latdec - 10)
    and latdec <= (latdec + 10)
    and longdec >= (longdec - 10)and longdec <= (longdec + 10).
    I think i need to include radians too, but i'm not able to come up with logical formula.
    I would appreciate any help with this topic.
    Thanks in advance

    I am not sure I understand the gerography concept, but I think the query should be like this:
    select zip, latdec, longdec,city, state, latrad, longrad
    from zip_coord
    where latdec between( select latdec from zip_record where zip='userinput', select latdec+10 from zip_record where zip='userinput')
    and longdec between( select longdec from zip_record where zip='userinput', select longdec+10 from zip_record where zip='userinput')
    and latrad between( select latrad from zip_record where zip='userinput', select latrad+10 from zip_record where zip='userinput')
    and longrad between( select longrad from zip_record where zip='userinput', select longrad+10 from zip_record where zip='userinput')
    Hope, it can help.
    Aiping

  • HT1657 I just rented a movie didn't see it just pressed to see if it starts all good I stopped the movie and now can't find it anywhere to see what happened I supposed to be able to see it during 24hrs as many times as I wish... Plz help to find it on my

    I just rented a movie didn't see it just pressed to see if it starts all good I stopped the movie and now can't find it anywhere to see what happened I supposed to be able to see it during 24hrs as many times as I wish... Plz help to find it on my iPhone.

    I just rented a movie today, and finished it. But now I can't find it. People say that it is in the Purchase, it's not there

  • Finding all repair in search helps

    Hello people,
    I don´t know if it is possible.... but.... I will ask!
    In our environment, we have a lot of repairs in search helps. When we simulate the upgrade to ERP 6.0,  these repairs disappear.
    I believe the correct way to do this ampliation is doing the "Append Search Help", that´s right?
    So, I would like to change from these repair tecnique to the append tecnique. How can I find all the search helps that suffered a repair? Is there a table with this information?
    Thank you!

    Dear,
    Did you for this information in SMODILOG table?
    I'm not sure which changes have been performed in the Search Helps, you may look for the objects with the following directory entries:
    LIMU SHLD --> Search Help Definition                          
    LIMU SHLX  -->Text Component of Search Help Definition        
    I hope you find all modification done in Search helps.
    Lucio Rodrigues

Maybe you are looking for

  • Itunes in Asian language - not English

    I upgraded to itunes8 and now there is no words, just boxes (except itune words such as podcast etc) and if I go into the help section, it is all in an Asian language. I have uninstalled, reinstalled old and new versions and seem to come up with the

  • Nokia c7-00 showing offline when inserting relance...

    hi.. am from kerala and curently using tata docomo sim in kerala circle and it works well...am studying in tamilnadu and when i insert reliance sim in tamilnadu circle,it wents offline and i cant even access the network selection menu..whenever i sel

  • TextInput - search as you type

    hello all, Does anyone know of a TextInput component that drops down a scrollable vertical menu of search results as you type?  Similar to Google's homepage where as you type a dropdown appears below the text field with matching results. cheers

  • 9.1.1 just lost all photos - HELP!

    Re iPhoto 9.1.1 (527). iPhoto just prompted to convert/update library. Initial message stated that some files were not accessible and asked to repair permissions. Indicated that process could take an hour or more for large libraries, but zipped throu

  • How to ADD a second external Hard Disk ?

    Hi, I'm using an iMac 1,42 GHZ PowerPC G4 mini. With an external 250 GB hard disk. Can I ADD an extra external hard disk ? And HOW ? Thanks very much for an answer ! John