The week of Julian to the calendar week number

Hi Experts,

Could if it you please let me know the syntax to convert a number of week of Julian calendar week number. Thanks in advance

Thank you and best regards,

Karthik R

As shown Etbin, you must do it in two steps. First, you convert "Julian Week" to a date data type that belongs to that same week.

When you have that, you can use the full power of the format mask oracle to extract everything you need.

Oracle got two different masks for weeks.

  • IW = ISO week
  • WW = common (julian?) week.

As you know, the year can also change, so there is a mask of the year YYYY and a mask of year IYYY ISO.

Back to your problem, if the conversion tip 351006 * 7 fits your needs as a week of julian to date, so I think that the solution is good.

with week_to_date as (select to_date(351006 * 7, 'J') my_day from dual)
select  to_char(my_day, 'Day DD/MM/YYYY') my_day,
        to_char(my_day, 'WW-YYYY') julian_week,
        to_char(my_day, 'IW-IYYY') ISO_Week
from week_to_date;
Monday, January 19, 2015 03-2015 04-2015

Tags: Database

Similar Questions

  • Recurring appointment Set for certain days of the week each month in the calendar on Surface RT?

    It seems to me that this is not possible, but is there a way I can put a recurring appointment for a certain day of the week of each month in the calendar on the Surface RT? For example, a meeting Tuesday on two or one excursion each fourth Sunday?  I know that this is possible in Outlook on a PC and I would like to do it on the Surface RT as well.  Most of my recurring appointments are of this type.  When I recur every month on the Surface, it just sets it for the same date (for example the 12th of each month) instead of the second Tuesday.  Thank you!

    Hi Lisa,

    You were correct when you say that 'it seems to me that's not possible. ' The recurring appointment for some day of the week each month in the calendar on Surface RT cannot be done by date and not day.

    Good day!

  • Convergence 2u5 - how to get the ISO week number in calendar view?

    Hello

    Convergence seems to be displaying week numbers "US Standard" (e.g. 27/02/2013 is week 8).
    I don't see any option to display European/ISO week numbers (27/02/2013 is week * 9 *).

    You can test on this page: http://www.onlineconversion.com/day_week_number.htm

    Tested with 2u5 and Convergence 2u4.

    Technically, Convergence depends currently dojo to calculate WeekNumber (kernel.js called dojo.date.locale.format that calls dojo.date.locale._getWeekOfYear which uses US Standard).
    The dojox.date.posix.getIsoWeekOfYear method can be called to get the ISO week number.

    EDIT: ok, known problem.
    https://support.Oracle.com/epmos/faces/UI/km/BugDisplay.JSPX?ID=15920988

    And:
    https://support.Oracle.com/epmos/faces/UI/km/SearchDocDisplay.JSPX?_afrLoop=358252901368927 & type = document & ID = 1508601.1 & DisplayIndex = 1 & _afrWindowMode = 0 & _adf. CTRL-State = hy91faqhm_93

    Published by: user13722792 on 27 Feb. 2013 02:03

    Yes, we talk about behavior. However, demand for next development was opened on this:

    15920988 DO WEEK NUMBERING CUSTOMIZABLE IN CONVERGENCE

    More on that we can read in the document of knowledge:
    The numbering of the week in the calendar week view is inconsistent with the ISO8601 (Doc ID [1508601.1 | https://support.oracle.com/rs?type=doc&id=1508601.1])

    It also contains a customization to get Convergence use week numbering.

    If you want to be officially added to the demand of development, you need to open a Service request, which contains this application.

    Cheers, Ben

  • get the calendar week start date

    Hi all

    Is there a function or method in oracle 11g to get the calendar week start date? for example. If 1st week begins January 3, 2011, the function should return January 3, 2011.

    Thank you
    Sunita

    Try this

    SQL> select next_day(trunc(sysdate,'YYYY'),'SUN')+1 from dual;
    
    NEXT_DAY(
    ---------
    03-JAN-11
    

    The solution given by Mahesh is a gross... 3 jan was just for example... not to hardcode

  • How can you determine what the user watch calendar view (month, week, day, list) the calendar of CSS (5.0)

    We run Apex 5.0.1.00.06 and I would like to add a region to a page, if the user displays the LIST of the CSS calendar view. I can't understand how to determine which view the user displays currently. Is it possible to determine to create a condition to show another region in they are on a particular view?

    BillH104 wrote:

    We run Apex 5.0.1.00.06 and I would like to add a region to a page, if the user displays the LIST of the CSS calendar view. I can't understand how to determine which view the user displays currently. Is it possible to determine to create a condition to show another region in they are on a particular view?

    This can be achieved using some dynamic measurements, to hide the region if the calendar is the display month view when loading the page and to show/hide the region when you click the list/month selector.

    Add a static region ID to region calendar for use in jQuery selectors.

    Name: See the region list - load

    Event: Loading the page

    Condition: Expression of JavaScript

    Value:$('#static-region-id .fc-month-view').length > 0

    Real Action

    Action: Hide

    Selection type: Region

    Region:

    Nom : See the region list - click

    Event: Click

    Selection type: jQuery Selector

    jQuery Selector:.fc-button-group button

    Condition: Expression of JavaScript

    Value:$(this.triggeringElement).hasClass('fc-list-button')

    Real Action

    Action: Show

    Selection type: Region

    Region:


    Action of false

    Action: Hide

    Selection type: Region

    Region:

  • What is the week number given by the function "week"?

    Just by using the function 'week' which gives 2 number of the week for Monday January 4 which is false.

    According to the ISO standard, number one week is the week containing January 4.

    Kind regards

    Stone.

    Yes, ColdFusion week numbering system is different from the standard ISO date. For example, in ColdFusion, the week starts on Sunday. Whereas in the ISO standard, it begins on Monday.

    There is nothing wrong with that. The ISO standard is a convention and is not required

  • turnover of 18 weeks from the week of the current month number

    Hello

    I have a requirement as described below.

    Time table name:
    Columns: year, month of exercise and exercise week

    table above has the join with the sales table and contains data on sales according to the week. so less granularity of data at the level of the week.

    We have a report that contains columns exercise, actual sales and forcast sales. our requirement is to filter the data with the following criteria.

    Filter for the current month
    Fiscal week Jan between 1-18 of the current year
    Fiscal week Feb between 5-23 of the current year
    Week fiscal March between 9-27 to the current year

    .
    .
    .
    .
    Fiscal week November between 44 the week of the current year and week 10 of next year

    December

    with above requirement therefore filter the data bearing 18 weeks from the week of the current month number


    I tried with timestampadd (interval, sql_tsi_week, week), but it does not work as I expacting. Please provide the code/logic to do so.

    Appreciate your help.

    Thank you
    Jay.

    Jay wrote:
    I need to get the results of 18 weeks of turning to anypoint starting with the week number of the 1st of every month at 18 weeks. read my question again once and you will be able to understand.

    It kind you of lack the point to be honest. It is very difficult to answer specific questions without the required information. To answer a question like this we need a minimum of:

    1. oracle version
    2. examples of data (CREATE TABLE / INSERT statements)
    3. expected results
    4. explanation of the business rules.

    Alternatively, you can read the link in my original reply.

    Please provide the information requested and someone can help.

  • The current week number

    How can I get the current week number?

    Try this
    Select to_char (sysdate, 'IW') AS 'WEEK OF the YEAR' twice

    http://nimishgarg.blogspot.com/2010/11/Oracle-some-important-date-queries.html

  • How to get the name of the month of week number

    Hi gurus,

    I have week a year numbers.
    I want to get the name of the month using the number of the week.

    Is it possible to do this by using SQL.
    Help, please.
    Thank you
    Dominic
    SQL> var week number
    SQL> var year number
    SQL>
    SQL> begin
      2   :year := 2007;
      3   :week := 30;
      4  end;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select to_char(trunc(to_date(:year,'yyyy'),'iyyy') +  :week * 7, 'Month') month from dual
      2  /
    
    MONTH
    ---------
    July
    
    SQL>
    
  • Can I customize the color or border of "today" on the calendar?

    On the month or several week view, current date is described in the orange/red, but it's a little too subtle for me. I would like to play with the colors of adjustment ' today ' today ' - is - it possible? In addition to highlighting the, I would like to change the background color for this square on the calendar.

    It is a pleasure to dive under the hood, if necessary.

    This addon looks like you need:
    https://addons.Mozilla.org/en-us/Thunderbird/addon/calendar-tweaks/

  • I followed the instructions for "Go Thunderbird data to a new computer," but the calendar data has not been transferred and the calendar program does not work.

    I manually moved my profile of Thunderbird in Ubuntu 12.04 LTS to 8.1 Windows. I followed the instructions and everything settled as expected except the calendar. Not only the calendar data has not been transferred, the calendar itself does not, for example no dates & everyday of the week, etc., all the menus associated with the calendar are "grey," etc. I'd appreciate any help. TIA KellyJMorris

    Calendar (aka Lightning) contains binary components, which are dependent on OS. Thus, you should not remove the add-on lightning in your add-ons Manager and install the Windows version of lightning.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/lightning/

  • iCal keeps crashing, cannot access the calendars folder in library

    Hi, I know that this question/very similar who have been posted, but I have a problem with iCal on my Macbook Air. I am running OS X El Capitan v 10.11.5. iCal does not work on my macbook; currently when I open it, only about 3 weeks events value are displayed (that are shifted back exactly 4 weeks now) and no other event in the past or the future appear.

    I see all my events both on my calendars iCloud on my iPhone and using iCloud online.

    I tried to access my calendar folder in the library, but he can find. When you try to delete my iCloud account to put new, nothing happens. I hit the button Delete and then tap on delete of Mac, but the iCloud account remains.

    I'm not sure if that was the issue, but I subscribe to a calendar and had some problems, so I created a new Calendar iCal subscription-related. I tried to delete the original, but whenever I do, I ran into iCal crashing. I've seen a lot of responses from forum saying that I had to go in my

    Libraries-> folder calendars but I don't see a folder calendars here.

    Any advice on how to remove the calendar and/or iCal works correctly again would be appreciated; Thanks in advance for your time!

    Hi Boris: I'm the kind of low-tech and does not even have a smartphone, but I also use El Capitan on my iMac 27 "and, like Yosemite, the library files and caches should be there.  To access it, hold down the Option key while you are scrolling to the bottom of the column to go to the top left corner.  You should see the library.  He has deliberately designed to use an extra step so that you won't accidentally inside.  You should see calendars.  I often erase 3 caches if there are questions, and they build back up again.  I also try to delete all external files, if I don't have a lot of space on my iMac.  Really, I do not use a calendar that many but a lot.  Hope this helps, but the library is hidden I guess to make sure that you don't go too much in.

  • Look at the calendar entry does not synchronize

    Watch ver 2.1 (S 13, 661), watch OS 2.1: when you enter the entrance of the calendar, with Siri, the watch does not synchronize with the Iphone 5 s worm 9.2 (13 c, 75). IOS 9.2.1.

    Hello

    Do not forget that Apple Watch shows the events you have planned or have been invited in for today and next week. Anything beyond that will not appear on your watch until closer to the time.

    If not, please clarify what you mean by "does not synchronize.

  • Windows live calendar not only show a part of an event in the calendar

    When I open windows live calendar it shows that some of the test registered and this is not on the correct date, but earlier in the week. Found a web site that opens the calendar and shows the full entry but when I save it as a favorite that need me for my calendar live windows that show only part of the inscription. Help thanks!

    Hello

    The question you have posted better suited to the Hotmail calendar support. I recommend you to ask your question in Hotmail Calendar Help Center support.

    Hope the helps of information.

  • The calendar settings reset after reboot

    Hello

    Could someone please check if you have the same problem on your phone?

    Sony calendar resets the settings after reboot.

    For example, if I put "week begins on ' = 'Monday' and restart the phone, this setting will return to 'Sunday' (which is the default).

    I am now running Calendar 20.0.A.2.5, but I think that this bug existed before as well (even on my old V Xperia I think)

    P.S. I found this subject, but I did not understand the solution correctly or it does not work for me... I tried to disable the calendar app, but it did not help somehow...

    There were improvements made on this subject and if you update the 23.4.A.0.546 phone and use the latest Google Calendar app I hope not to have this problem more.

Maybe you are looking for