get the calendar week start date
Hi allIs 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
Tags: Database
Similar Questions
-
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:03Yes, 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
-
Dynamic action - Get the difference between two dates + times
I have problems a little dynamic to work action. I'm trying to get the time between two dates with the time difference.
Here is what I got (this is apex 4.0):
Two date pickers + two numbers fields (date/start/end times)
I created a dynamic action on the page who fires on the point lose focus (above points).
The real action for the DA is the body of the PL/SQL function:
When I change the values on the page, I get the following error:declare end_date DATE; start_date DATE; Begin start_date := to_char(:P1_START_DATE || ' ' || :P1_START_TIME, 'DD-MON-YYYY HH:MIAM'); end_date := to_char(:P1_END_DATE || ' ' || :P1_END_TIME, 'DD-MON-YYYY HH:MIAM'); :P1_HOURS := end_date-start_date; End;
AJAX call back Server error ORA-06502: PL/SQL: digital or value error: character number conversion error to set the value.
I'm guessing that there is a problem with the date formatting, but I can't make it work. Thanks in advance!Hi djston,
because you chose the dynamic action of 'Set value' with the "Body of the PL/SQL function" type you need to return the value. Try the following code
declare end_date DATE; start_date DATE; Begin start_date := to_date(:P1_START_DATE || ' ' || :P1_START_TIME, 'DD-MM-YYYY HH:MIAM'); end_date := to_date(:P1_END_DATE || ' ' || :P1_END_TIME, 'DD-MM-YYYY HH:MIAM'); RETURN (end_date-start_date)*24; End;
and P1_REQUESTED_HOURS like 'item affected. "
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolfPublished by: Patrick Wolf on January 17, 2011 10:54
-
How can I get the exact time and date on my FAX LOG
I have a new HP Officejet 6500 has more on my Dell Inspiron Windows XP computer. How can I get the exact time and date on my FAX log?
Hi FrederickFrank7,
Journal of faxes would just follow the time of your printer. Please set the time and date of your printer.
I am an employee of HP.
Please indicate the position that solved your problem as "acceptable Solution". -
get the program cannot start because mfc 110u.dll is missing from the computer.
Hello, get the program cannot start because mfc 110u.dll is missing from the computer. Try reinstalling the program to fix this problem. Thank you
Hi Dennis,
Thanks for the reply.
This error code is related to the AVG program or utility system AVG and you can try to uninstall and reinstall the program, and check if it helps.
For more information on this you problem refer to the AVG form:
http://www.Avg.com/us-en/AVG-forums?sec=thread&Act=show&ID=149672
WARNING OF THIRD PARTY
Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
When you disable Antivirus:
Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.
-
Purchase DVD LR6 Adorama, but Setup does not connect to the internet so that I can record. Internet works fine. I have Adobe account.
I went to Safari to Chrome and downloaded the trial version in the hope to bypass the DVD version, but I can't get the program to start. I get the same message that I should connect to the internet and connect. It seems impossible after 3 hours. Spent an hour chatting with the support of the India.
Also remove the cookie file and reg Lightroom then enter the serial number and check.
Windows:
Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.
Type below command and press the enter"" key.
programdata %
It will open the ProgramData folder. inside locate Adobe folder.
Go to Adobe > Lightroom.
Open Lightroom and delete all the files inside,
Then run LR 6 and enter the serial number,
Mac:
(1) right-click on the icon in the Finder, then select the 'Go - To Folder' option.
(2) you will get a text box, type in the following command and then press the 'return '. (" Do not miss ~ symbol" "')~/Library
It will open the folder of the user's library.
(3) then navigate to Application Support > Adobe > Lightroom.
Open Lightroom and delete all the files inside,
Then run LR 6 and enter the serial number,
-
get the first week of the month
Hello
How to get the first week of the month of request
I tried this, but not gwtting
SELECT THE DOUBLE TO_CHAR('09/30/2007','W')
Thank you
Published by: 896398 on January 18, 2012 03:17SQL> select to_char(to_date('07-12-2008', 'DD-MM-YYYY'), 'W') from dual; T - 1 SQL> select to_char(to_date('14-12-2008', 'DD-MM-YYYY'), 'W') from dual; T - 2 SQL> select to_char(to_date('23-12-2008', 'DD-MM-YYYY'), 'W') from dual; T - 4
HTH
Kind regards
NORTH CAROLINA -
How to get the multiple layers of data
Hello
I imported two jpg files into a single composition. Please follow this procedure...
1 created a composition, say his name testCompo
2 imported a file1.jpg in the file-> Import-> file draft
3 imported a file2.jpg in the file-> Import-> file draft
4. drag the two files, file1.jpg and file2.jpg, in the testCompo
Now, I have two layers (it is file1.jpg and nested are file2.jpg) in my testCompo. How can I get the information in pixels or pixel data of the
the two images (IE, I mean layers).
I knew that params [0]-> u.ld is the first data layer in
() EntryPointFunc
PF_Cmd cmd,
PF_InData * in_data,
PF_OutData * out_data,.
PF_ParamDef * params [],.
PF_LayerDef * output,
void * extra)So what about other data layer? Then, finally how can we get the multiple images/layers data in AE?
Thanks in advance!
It's the thing.
You must have a param layer (let's say it's param number 3).
Use this param to select any layer of the model.
Now you checkout param 3.
what you get is a paramDef structure containing the pixels of the layer 3 Advanced param to.
you will find this information at:
paramDef-> u.ld.data (or something close to that. I do not have in front of me)
This way the jpg1 affect can get jpg2 pixels and jpg3. any layer in the comp.
-
How to get the ISO week number week start date
Hello
I have a table with the following structure
I was hoping to get something like select year, error, week 1 | "Start date of the week which is a Monday of this week" ", semaine2:" " Earlier this week, Monday again ",... table week53"Year error Week1 week2 week3 ......week53 2012 error1 2 4 2 1 2012 error2 3 0 1 1
Any suggestions please?
Thank you
SunHi, the Sun,
To see what a week N started, add 7 * (N - 1) days of the beginning of the year. (By definition, the beginning of the ISO year is the beginning of week 1 of the ISO year.)
To see when the week started 22 of the current year:
SELECT TRUNC (SYSDATE, 'IYYY') + (7 * (22 - 1)) FROM dual ;
I hope that answers your question.
If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using.
See the FAQ forum {message identifier: = 9360002} -
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 -
How to get the difference of two dates in months
Dear friends,
I have 4 items on my page.
2 entered message text (value of loan, monthly deduction)
2 are message style fields (start date, end date)
I need to get the difference from above 2 dates in no.. of months. (for example say N)
So with N, loanvalue should be divided and populated as monthly deduction.
I tried this way, but not able to get the difference of dates
{if ("populateMonthlyDeduction". Equals (PageContext.GetParameter (EVENT_PARAM)))}
System.out.println ("enter populateMonthlyDeduction loop1");
String xxDeductionStartDate = vo.getCurrentRow ().getAttribute("DeducStartDt").toString ();
System.out.println ("xxDeductionStartDate is:" + xxDeductionStartDate);
TXN OADBTransaction = am.getOADBTransaction ();
java.sql.Date DeductionSDate = null;
java.sql.Date DeductionEDate = null;
if(xxDeductionStartDate!=null)
{
java.sql.Date startDate = txn.getOANLSServices () .stringToDate (xxDeductionStartDate);
DeductionSDate = startDate;
System.out.println ("DeductionSDate is:" + DeductionSDate);
}
String xxDeductionEndDate = vo.getCurrentRow ().getAttribute("DedEndDt").toString ();
if(xxDeductionEndDate!=null)
{
java.sql.Date endDate = txn.getOANLSServices () .stringToDate (xxDeductionEndDate);
DeductionEDate = endDate;
System.out.println ("DeductionEDate is:" + DeductionEDate);
}
int difInDays = xxDeductionEndDate-xxDeductionStartDate; -Please correct me
How reach it .plz help.
Thank you
Aravinda
I used a custom like this method and calls this method daysBetween PFR.
I got it. Thanks to you all.
public int daysBetween(As Date, Date etDate)
{
return (int) ((etDate.getTime () - stDate.getTime (()) / (1000 * 60 * 60 * 24));
}
If ("populateMonthlyDeduction". Equals (PageContext.GetParameter (EVENT_PARAM)))
{
System.out.println ("enter populateMonthlyDeduction loop1");
String dedStDt = vo.getCurrentRow ().getAttribute("DeducStartDt").toString ();
String dedEndDt = vo.getCurrentRow ().getAttribute("DedEndDt").toString ();
If (! dedStDt.Equals (null) &! dedEndDt.equals (null))
{
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
Date sdate = new Date();
Date edate = new Date();
String sdate1 = null;
String edate1 = null;
try {}
sdate = dateFormat.parse (dedStDt);
EDATE = dateFormat.parse (dedEndDt);
SimpleDateFormat dateFormat1 = new SimpleDateFormat("dd-MMM-yyyy");
sdate1 = dateFormat1.format (sdate);
edate1 = dateFormat1.format (edate);
int days = daysBetween(sdate, edate);
int diffInMonths = days/30;
System.out.println ("days is:" + days);
System.out.println ("diffInMonths is:" + diffInMonths);
String sTotValueTuitionFees = vom.getCurrentRow ().getAttribute("TotValueTuitionFees").toString ();//pageContext.getParameter("LoanValue").toString();
int iTotValueTuitionFees = Integer.parseInt (sTotValueTuitionFees);
int iMonthlyDeduction = iTotValueTuitionFees/diffInMonths;
String sMonthlyDeduction = String.valueOf (iMonthlyDeduction);
System.out.println ("iMonthlyDeduction is:" + sMonthlyDeduction);
OAMessageStyledTextBean bMonthlyDeduction = (OAMessageStyledTextBean) webBean.findChildRecursive ("MonthlyDeduction");
bMonthlyDeduction.setValue (pageContext, sMonthlyDeduction);
}
catch (ParseException exception) e
{
}
}
}
-
Can not get the server to start the CD ISO of ESX
I have a Dell 2950 that I trying to load VMware ESX 4.1 update 1 on. I can't the server to boot from the CDROM. It starts to boot from the CD, but all I get is the message "ISOLINUX 3.63 2008-04-10 Copyright blah blah". I tried several CD at this point and that you always get the same thing. I use InfraRecorder 0.52 and it verifies the data after writing.
Any ideas?
I just had a similar problem with a nested ESXi installed tonight. Turns out be downloading (it was corrupted). Check the md5sum for your download against the value published with the download.
-
Get the error when loading data into the base cube
Hi all
I get the error by loading the file of hollow data to the database below.
Please take suggest me...
I use ESSBASE 9.3.1.3.
Error:
Basic charge database
The Xchgrate database management
Load the database Interntl
Sample application loaded - connection established
Start the application [example] with the process id [1688]
Empty invalid character in name (E:\My personal Data\Test\222.txt) based on the ESSAPI EssUpdateFile
Unexpected error Essbase 1030010Empty invalid character in name (E:\My personal Data\Test\222.txt) based on the ESSAPI EssUpdateFile
Essbase has problems with spaces (white space characters) the path names (my personal data)
Rename your path or move the data file to a location that has no characters/spaces in the path name.
-
How to add photos to the calendar already started?
Hello everyone.
I started a draft order of business and I found just 3 photos, I want to add, but I can't find how :-(
Could you help me please?
Thanks in advance,
Fanny
Reveal the sidebar in Photos. Just press the key combination command-option-S ⌥⌘S
Select photos on the album or the moment and then drag them to your calendar project icon in the sidebar to add them to the calendar.
Film the bottom of the calendar project drag them to the pages where you want to use them.
-
get the timestamp of waveform data
Hi all
I'm coming out of the timestamp from waveform data if this is possible. I am writing to file, but the express vi does not allow for fractions of a second and when I write a string waveform data for use with writing to the worksheet, the data of time is lost.
any suggestions?
Use Get waveform components. What part of VI? Writing to a file of measure written fractions of a second.
Maybe you are looking for
-
Why can't I listen to music Apple using cellular data?
Recently, I subscribed to the Apple's music and I tried to listen to music, I have saved in my library using my cellular data and it did not work, he gave me a pop up saying "Connect to the Wi - Fi or cell phone to Play Music". I went to settings the
-
Dv2: My pc has a poweron password
I have a pavilion dv2-1010eo and I got a poweron password and I tried to reset the cmos Bettery and it's not helping
-
Satellite L300D - error code 19 Device Manager on the CD/DVD drive
I have a model of Satellite L300D PSLC0E and you just install Windows 7 upgrade from Vista, everything goes well outside the HL-DT-ST DVDRAM GSA-T50N ATA DEVICE and ATI. With the HL - DT - ST DVDRAM GSA - T50N ATA DEVICE this a driver problem, it is
-
PRINTER IS SHARED ON THE NETWORK AND YOU WANT TO SET AS THE DEFAULT PRINTER... My Hp Deskjet 3550 Printer I have server with Windows 7 32-bit, 64-bit client I was first installed the printer in my client and work and shared what this wireless client
-
BlackBerry App Barclays Pingit. Is he coming?
Pingit is fantastic and an app, I used constantly on my torch. Where the hell is - for BB10. For now the Z10 for me is a great phone... but that's all. I just lost key apps by opting for z10. Pingit is coming soon? desperately want to keep the phone