Date Comparsion Please help
Hi All:
I am using a javascript for checking the date comparision while testing i found this error and this is serious to me
date comparision works fine with the same month the probem wht i am facing is
eg start date 31-jan-2008 and end date is 24-feb-2008 there is no error is get
if start date is 24-jan-2008 and end date is 14-feb-2009 it through me a alter msg saying start date is greater then end date
there is some mistake in the script i beleve please suggest and help me out how to fix this problem
the script wht i am using is this
<script type="text/javascript">
function checkdates_baseline(pStartDateItem,pEndDateItem)
var sdate = document.getElementById(pStartDateItem).value;
var edate = document.getElementById(pEndDateItem).value;
var amonths = new Array('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC');
var start_date = new Date();
var end_date = new Date();
var start_month = sdate.substring(3,6);
var end_month = edate.substring(3,6);
var nstart_month = 0;
var nend_month = 0;
for(i=0;i<12;i++)
if(amonths == start_month)
nstart_month = i;
if(amonths == end_month)
nstart_month = i;
start_date.setFullYear(sdate.substring(6,10),Number(sdate.substring(3,5))-1,sdate.substring(0,2));
end_date.setFullYear(edate.substring(6,10),Number(edate.substring(3,5))-1,edate.substring(0,2));
var result = (end_date - start_date);
if( result < 0)
alert('The End date must be after the Start Date');
</script>
thanks
sudhir
But wht i am using is apex collection date picker which is of the format
dd-mon-yyyy this is the default format in it
i think there is no option available to make this using pl.sql process for validating this
the code which i posted before it is comparing with the days but month it is not happening i have posted the javascript code above works fine need to know where the problem in the code
or is there any other way in doing this i am not using a date picker item i am using
select
HTMLDB_ITEM.DATE_POPUP(1,rownum,,'dd-mon-yyyy') start_date
HTMLDB_ITEM.DATE_POPUP(2,rownum,,'dd-mon-yyyy') end_date
from dual
Sorry i wont repeate this next posting twise
thanks
sudhir
Similar Messages
-
i recently have ipad but before i sell it i made a back up of it and by an iphone when i put all the date on my iphone some files and software did not install is there anything i can do to recover the lost data? please help
I don't think you're on iOS 5, I think you're using iOS 6. That's the latest version.
Unless you've used iCloud to back up your documents, you won't be able to restore them. And for future reference, you don't have to uninstall Pages to update your iPad anymore. Sorry about this. -
hello, okay? since then, was robbed today, and my find my
iphone this down, please tell me if he has a way to locate the computer, I need the iphone again, it has many important data it please help meIt's gone and you most likely are not getting it back.
If you had important info on it, you should have made backups so you would not lose the data. -
I ordered an iphone 6 plus 64 gig space gray on 9/19/14. I still have not gotten any information on the ship date. Please help verizon!!!
urdea123,
You called and help has arrived. Congrats on the new phone. The iPhone 6 Plus 64GB space gray device is shipping on 11/7. You can always check your order here http://vz.to/1qKj0Rx
RobinD_VZW
Follow us on twitter @VZWSupport -
Just installed OS Yosemite, and now I can't open Illustrator CS6. Asks me to update my Java, but I check and my Java is up to date. Please help!
Some people have reported reinstalling the Apple 2014-001 Java update has helped.
See thread 7 here Illustrator CC 2014 crashes on startup after Yosemite 10.10 upgrade today. -
I don't have wifi connection.I need to update my software to ios 8.0.2 using cellular data.How can I download using cellular data?.Please help.
There are often places to go which have free WiFi ie coffee shops, shopping malls, fast-food places.
You can connect the phone to your computer & download/update via iTunes if you have one. -
I am using Iphone 4S and Ipad 2...it seems that my App Store application is missing or deleted. How can i retrieve it? How do I download a new one. My software is up to date. Please help asap. Thank you.
Check: Settings - General - Restrictions - Installing Apps = ???
-
Need help with query that can look data back please help.
hi guys i have a table like such
CREATE TABLE "FGL"
"FGL_GRNT_CODE" VARCHAR2(60),
"FGL_FUND_CODE" VARCHAR2(60),
"FGL_ACCT_CODE" VARCHAR2(60),
"FGL_ORGN_CODE" VARCHAR2(60),
"FGL_PROG_CODE" VARCHAR2(60),
"FGL_GRNT_YEAR" VARCHAR2(60),
"FGL_PERIOD" VARCHAR2(60),
"FGL_BUDGET" VARCHAR2(60)
)and i have a data like such
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','1','100');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','2','100');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7470','4730','02','10','2','200');I bascially need to get the total of the budget column. however its not as simple as it sound(well atleast not for me.) the totals carry over to the new period. youll noticed the you have a period column. basically what im saying is that
fgl_grant_year 10 period 1 = for account 7600 its $100 and $100 for period 2 you see 100 dollars again this is not to be added this is the carried over balance. which remains $100.
so im trying to write a query that basically does the following.
im given a period for the sake of this example lets say period 1 i get nothing else. I have to find the greates grant year grab the amount for period 14(which is the total from the previous year) and add it to the amount of the current period. in this case period 1 grnt_year 11
so the expected outcome should be $700
240055 240055 7240 4730 02 10 14 200
240055 240055 7600 4730 02 10 14 100
240055 240055 7600 4730 02 11 1 400keep in mind that im not given a year just a period.
any help that you guys can offer would be immensely appreciated. I have been trying to get this to work for over 3 days now.
finally broke down and put together this post
Edited by: mlov83 on Sep 14, 2011 8:48 PMFrank
wondering if you can help me modify this sql statement that you provided me with .
table values have been modified a bit.
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');i need to take one more thing into consideration. if the greatest year has a value on period 00 i need to ignore the period 14 and the current period total would be
the current period +(current period - greatest year 00)
hope that makes sense so in other words with the new data above. if i was querying period two of grant year 11. i would end up with $800
because the greatest year is 11 it contains a period 0 with amount of $400 so my total should be
period 2 amount $ 600
period 0 amount $ 400 - period 2 amount of $600 = 200
600+200 = $800
if i query period 1 of grant 360055 i would just end up with 800 of grnt year 10.
i have tried to modify that query you supplied to me with no luck. I have tried for several day but im embarrased to say i just can get it to do what im trying to do .
can you please help me out.
Miguel -
To get the transaction data..please help
Hi all,
i need to retrive the transaction datas..like deleted ,n updated datas..
I tried this query
SELECT * FROM FLASHBACK_TRANSACTION_QUERY WHERE TABLE_OWNER='CFMSDEV'
AND TABLE_NAME='M_REGIONS'
but this is givng the feilds of details..not showing a fied what data is translated..
please help me...
thnks®ardsHi,
To my knowledge this can be achieved only by Change Data Capture in 10g.
Let us wait for others opinion.
Regards
K.Rajkumar -
I have an Apple Configurator install that wont recognize an iPad when I attach it via USB. I cant prepare it or refresh it. It was supervised. I get an error message that says "policy does not have correct profile data". At some point there was a mismatch between the profile on the iPad and the MAC server. The profile on the MAC server has been deleted and the iPad has been erased and reset to default. I need to be able to get Configurator to recognize this device to prepare it for deployment and issue Apps to it. Please help!!
Run the application 'Terminal.app' which you will find in '/Applications/Utilities' on your Macintosh.
Type this into it: defaults delete com.apple.configurator PreprationSavedPolicyDefaultsKey
Hit the return key.
If you get no error message, it worked, and you can quit the app. -
I have tried many solutions including chatting with a Adobe Support person and he couldn't fix it. Ive uninstalled everything using the cleaner several times and oh so much more. When i open Creative Cloud, the home page will not come up including the fonts page and behance and the apps page doens't have all the apps its supposed to have plus! their all out of date! i keeping getting the old verions. cs6. i have no option for CC. and even when i install them half of them don't work. the ones i wanted the most. since day one of purchasing creatice cloud ive been having errors and just a little bit ago the techinal support dude told me to click this link and go from there. the link was NO help at all!!!
I bought a product i can't even use and i'm getting very fustrated and mad. ive been trying to fix this problem for days! please help me!if you put it in boot-loader mode where it display the usbplug on the ipod touch screen as described in my link
and connect it and itune don't react by wanting to restore it's firmware
there is
1. something wrong with itunes reinstall it
2. something wrong with usb drivers on the computer reinstall them
3. something wrong with the usb port try another
4. something wrong with the cable try another
5. something wrong with the computer try another
6. something wrong with the connector in the button of the ipod touch RMA it -
HT1386 Trying to Sync - Unable to load data class - please help
I just cleared my I-Pod Touch to put new music on it and my computer is prompting the following. "I-Tunes was unable to load data class information from sync sevices." Reconnect of try again later. Another prompt that keeps appearing is "the application apple mobile device help quit unexpectedly." Please help me...
Apple Mobile Device Restart. Disable all security software ex. Firewalls and Antivirus. Follow article http://support.apple.com/kb/TS1567 . The above listed article is correct by lllaass. I resolve it by unchecking the different categories in itunes sync pages... Plug in device, click on name on left side of itunes, Click on different sync pages like summary, info, music, movies, etc. You need to uncheck the main check box to sync content. An example would be unchecking "Sync Music" . You will then need to sync once for each category until you locate the source of your corrupt files or folders. Syncing without it checked removes content from device. Follow this step even if there is nothing on the device. Once you identify if it is picture or music etc. you will need to delete corrupt files or move them somewhere else on the computer so itunes can't find it anymore.
-
Sql query for quarter data..Please help
Dear Experts,
Please help with this query...
i have data like below:
Year
Quarter
MRR
MRR%
2012
Q1
10
Q2
30
Q3
50
Q4
60
2013
Q1
20
Q2
30
Now i need to caluclate MRR % column values as below
for 2012 Q2 MRR % = (Q2MRR-Q1MRR)/Q1*100 that is (30-10)/10*100
for 2012 Q3 MRR % = (Q4MRR-Q3MRR)/Q2*100
for 2012 Q4 MRR %= (Q1MRR-Q4MRR)/Q1*100 here q1 of 2013 and q4 of 2012...
like this it wll go on..
Please help with me query compute values in MRR % column.
Best regards
aspMaybe NOT TESTED! No Database at hand
select year,quarter,mrr,
ratio_to_report(q_mrr) over (partition by year order by quarter) pct_mrr
from (select year,quarter,mrr,
mrr - lag(mrr,1,0) over (partition by year order by quarter) q_mrr
from t
Regards
Etbin -
Hi
I have updated my iphone 4s, with the new iso7. Now i can't find how to switch on the cellular data, please help!! Can't find the option in SettingsSettings>cellular>cellular data
-
HELP! Today's upgrade wiped out patient data! PLEASE HELP!
Please help... installed whatever was "new" today... just went to iCal to check my patients for tomorrow and... it's all gone!
The "new" iCal is arranged differently too... on my "calendars" I now have at least 2 if not 3 of every calendar I've ever created (yet none of them have the lost data). Have tried going back to IMPORT and/or RESTORE data and... it either hangs up or there's nothing to select (it's grayed out and the CHOOSE button never illuminates).
As a practicing psychologist I've now lost ALL my patient information, past and present! PLEASE HELP!
Thanks.
Dr. PetersonHope this helps. (and always have a backup file ready for a pull of any archived library files if any data is lost on an upgrade)
http://www2.tbo.com/content/2008/feb/25/bz-apple-fix-removes-ical-schedules/?new s-money
Maybe you are looking for
-
I'm running a script for a game through grease monkey, and I require the script to run 24/7 without me needing to be there 24/7 to press "continue" when this error message comes up "To display this page, Firefox must send information that will repeat
-
Select Query Problem-need help
hi, Help me out from this problem. Actually i have a table and the data in it as follows: Department Name Job Name Accounts Sr. Accountant Accounts Jr. Accountant Accounts Cleark But i dont want the repeated Department Name.. and i want the same outp
-
Memory leak in MAX Preview resolved by build 411
I was experiencing a memory leak while using the TLF that came as part of Flex 4 MAX Preview. Over the course of several hours, instances of a class called TextAccImpl would rapidly accumulate to the point where they accounted for over 50% of memory
-
Mp3s/cd's to iphone. HOW?
Hi....right i maybe missing something really simple here but how do you put music on the iphone????ive got loads of mp3s on my laptop and cd's i want to put on.but arrrgh i cant. ive imported one cd to itunes but how do i tranfer to phone.how do i tr
-
Excute Unix command Using PL SQL
Greeting, how can I execute shell unix commands from PL SQL and without passing by the Java virtual machine, because my database server is not very performant to support the heaviness of Java. Thank you for ur help!!!