How to find particular date lies in between two given dates
hi,
i have a problem. i have to find if particular day lies in between two given dates.
example two dates are joindate and expirydate.
1.joindate is 1/03/2007
expdate is 1/03/2008
now i have to find if 29 feb is in between this joindate and expirydate.
if any1 has ny idea please reply asap.
thanks.
The Date class has a before() and after() method you can use to compare Date objects.
Similar Messages
-
How to find out the common things between two rpds?
How to find out the common things between two rpds? And place the common things in a common RPD.
I thought of one solution.
Original RPD = A
Modified RPD = B
XML Patch created for A-B = X
Now open the XML Patch in IE or Mozilla and delete the columns/tables/variable/etc,. from the Original RPD A.
But its a cumbersome process, if the XML file is of very less size its Ok. If its 10-20 MB then going line by line and deleting the change is not the process to be followed.
I have to check whether its just the delete or modify or drop.
Let me know your thoughts. -
All Dates between two given Dates
Hi,
I need all the dates between two given dates in select-options .
For example the range in select-options is 01/01/2007 - 31/03/2007 .
I need all the dates between the two given dates .
How can i do this .Is there any FM for this ?
Regards,
Ziause this
CSCP_PARA1_GET_PERIODS
data:begin of daytab occurs 0.
include structure scscp_period_str.
data:end of daytab.
call function 'CSCP_PARA1_GET_PERIODS'
exporting
i_datuv = r_budat-low
i_datub = r_budat-high
i_timeunit = 'D'
tables
et_dates = daytab.
here u have to put one more logic.
loop at daytab where datuv in r_budat.
endloop.
So u will get all the dates
Regards
prabhu -
Download to excel between two given dates
Hi All,
I already implemented Export to Excel funtionality in webdynpro java. Now i have a requirement to download the data to Excel only between two given dates.
I am taking two dates from the user and based on that it should download data into excel file.
Guide me on this or send pseudocode for this.
Regards,
DhruvHi,
If I understand your question correctly,
you are gettting some data from R/3. You need to filter out that data which is in between two given dates , export that data to excel.
If yes, then take one more ValueNode with same structure.
and bind the filtered data to this node.
To filter out model node, use
int size=wdContext.node<outputnode>().size();
Date stDate=wdContext.currentContextElement().get<startDate>();
Date endDate=wdContext.currentContextElement().get<endDate>();
for(int i=0;i<size;i++)
Date objDate=wdContext.node<outputNode>().get<outputNode>ElementAt(i).get<dateAttribute>();
if( (objDate.compareTo(stDate)>=0) && (objDate.compareTo(endDate)<=0) )
// Create element for value Node , set the values (ie. i'th record values) and add to ValueNode.
Long process, but you can use
Now export the ValueNode to excel
Regards
LN
Edited by: Lakshmi Narayana Chowdary Namala on Sep 22, 2008 12:04 PM -
SQL - Can u print all the dates between two given dates (Without PL/SQL)
Hi Friends,
I want to know if u can print all the dates between two given dates without using pl/sql.
date1,date2 are given
write a sql statement to display all the dates lying between those two dates.
An earlier will be appreciated.
Thanks in Advance
Sriram
nullSriram,
Try this....
select to_date('01-JAN-00')+to_number(rownum)
from all_tables
where rownum < to_date('10-JAN-00')-to_date('01-JAN-00')
TO_DATE('
02-JAN-00
03-JAN-00
04-JAN-00
05-JAN-00
06-JAN-00
07-JAN-00
08-JAN-00
09-JAN-00 -
How to get the number of days between 2 given dates
Hi all,
How can I find the number of days between any 2 given dates.
ThanksHi
Here's a dirty way:
If you've got two Date objects in Java, call getTime() on each one (which gives you a value in milliseconds), then subtract the two millisecond values, and divide the result by the number of milliseconds in a day (24 * 60 * 60 * 1000). There's more `elegant' ways to do this, but this method only requires one line of Java.
Best wishes
Kevin -
How to calculate the no. of weekdays between two active dates
Hi all,
I need to calculate the no. of weekdays between two days.
For Example:
If i want to know the number of weekdays between 17-NOV-2008 to 7-DEC-2008 its 10 excluding sat and sun.
how to do that if the period is more?
like 1-JAN-2006 to 12-APR-2007
Thanks in advance..
Regards,
ManojNEXT_DAY(start_date - 1,'SUNDAY') is first sunday >= start_date. NEXT_DAY(end_date - 7,'SUNDAY') is last Sunday <= end_date. Therefore:
(NEXT_DAY(end_date - 7,'SUNDAY') - NEXT_DAY(start_date - 1,'SUNDAY')) / 7 + 1 is number of Sunday's between start_date and end_date. Same way:
(NEXT_DAY(end_date - 7,'SATURDAY') - NEXT_DAY(start_date - 1,'SATURDAY')) / 7 + 1 As a result, number of weekdays between start_date and end_date is:
business_day_count := end_date - start_date + 1 -((NEXT_DAY(end_date - 7,'SUNDAY') - NEXT_DAY(start_date - 1,'SUNDAY')) / 7 + 1 + (NEXT_DAY(end_date - 7,'SATURDAY') - NEXT_DAY(start_date - 1,'SATURDAY')) / 7 + 1) or
business_day_count := end_date - start_date - 1 -(NEXT_DAY(end_date - 7,'SUNDAY') - NEXT_DAY(start_date - 1,'SUNDAY')) / 7 - (NEXT_DAY(end_date - 7,'SATURDAY') - NEXT_DAY(start_date - 1,'SATURDAY')) / 7 or:
SELECT end_date - start_date - 1 -(NEXT_DAY(end_date - 7,'SUNDAY') - NEXT_DAY(start_date - 1,'SUNDAY')) / 7 - (NEXT_DAY(end_date - 7,'SATURDAY') - NEXT_DAY(start_date - 1,'SATURDAY')) / 7 FROM DUAL; The above code assumes business day count between two dates includes both start and end dates. Keep in mind, the above code is NLS dependent.
SY. -
How can i get number of days between two dates represented by two dates?
how can i get number of days between two dates represented by two date objects. One is java.sql.Date, the other is java.util.Date?
tej_222 wrote:
But how do I do that conversion. from java.sql.date and java.util.date to calender?
-thanks for the quick response.You may find the following utility code samples useful:
[http://balusc.blogspot.com/2007/09/calendarutil.html]
[http://balusc.blogspot.com/2007/09/dateutil.html]
ganeshmb wrote:
(date1.getTime() - date2.getTime())/(1000*60*60*24) should do.
getTime returns millsecond value of date object and the difference divided by no of milliseconds in a day should fetch you the difference in terms of days.This doesn't respect the DST. Use java.util.Calendar. -
How to find out the rows inserted between a time period.
Hi,
Please help me to solve this.
Table - emp.
Colmns - empno(Primary Key),ename, mgr
How to find out the rows inserted between a time period.
For eg:- Between 02-Oct-2006 1 PM and 03-Oct-2006 2 PM.
regards,
Mathew.Hi,
Maybe work:
For each row, ORA_ROWSCN returns the conservative upper bound system change number (SCN) of the most recent change to the row. This pseudocolumn is useful for determining approximately when a row was last updated. It is not absolutely precise, because Oracle tracks SCNs by transaction committed for the block in which the row resides
e.g.:
SGMS@ORACLE10> create table test(cod number);
Table created.
SGMS@ORACLE10> insert into test values (1);
1 row created.
SGMS@ORACLE10> insert into test values (2);
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> insert into test values (3);
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> select SCN_TO_TIMESTAMP(ora_rowscn),ora_rowscn,cod from test;
SCN_TO_TIMESTAMP(ORA_ROWSCN) ORA_ROWSCN COD
06/11/06 08:56:56,000000000 727707205 1
06/11/06 08:56:56,000000000 727707205 2
06/11/06 08:57:05,000000000 727707210 3Cheers -
How to find and replace any string between " "
Hi everyone,
Here my sample
String szTest;
szTest = "Yellow banana";
szTest = "Blue monkey";
szTest = "Red mango";
szTest is only needed when it's in testing progress. Now I want to put all of that in the /*comment*/ so the released program won't run those code any more (but still keep szTest so I can use it for future develop testing).
So Here what I want after using the Find and Replace Box:
//String szTest; //Manual
/*szTest = "Yellow banana";*/ //use find and replace
/*szTest = "Blue monkey";*/ //use find and replace
/*szTest = "Red mango";*/ //use find and replace
I think I can do this with Regular expressions or Wildcards. But I don't know how to find and replace any string between " and ".
Find: szTest = " ??Any string?? ";
Replace with: /*szTest = " ??Any string?? ";*/
Thanks for reading.Hi Nathan.j.Smith,
Based on your issue, I suggest you can try the Joel's suggestion check your issue again. In addition, I find a MSDN document about how to use the Regex.Replace Method to match a regular expression pattern with a specified replacement string,
maybe you will get some useful message.
https://msdn.microsoft.com/en-us/library/xwewhkd1(v=vs.110).aspx
If the above suggestion still could not provide you, could you please tell me what language you use to create the program for finding and replace any string using regular expression so that we will find the correct programming develop forum to support this
issue?
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi, i want to find the difference in days of two students Date Of Birth
hi, i want to find the difference in days of two students Date Of Births
how can i find.
please help mei didn't find what u saidLet me help you:
http://onesearch.sun.com/search/onesearch/index.jsp?qt=difference+between+dates&subCat=siteforumid%3Ajava54&site=dev&dftab=siteforumid%3Ajava54&chooseCat=javaall&col=developer-forums -
How do I share one itunes account between two users on the same computer
How do I share one itunes account between two users on the same computer without taking up twice as much space on my hard drive?
You would need to move the itunes folder to a location that both users have permissions to access such as the Shared folder or any folder on the root level of the macintosh HD.
You can find instructions here http://support.apple.com/kb/HT1203 This method allows you to share the content without sharing the same library. -
How to transfer files(pdfs/music.etc)between two pcs
how to transfer files(pdfs/music.etc)between two pcs?
Yes, you pretty much just drag and drop or copy and paste depending on which way you like better. It is pretty much like connecting an external hard drive. Just find the files you want and copy them over to your other computer.
This is one of my favorite features from Macs. It's very simple to do and because it's Firewire even large files transfer over very quickly. -
Working hours of an employee between a given date range
Hi Everyone,
how to calculate working hours of an employee between a given date range
Please anyone qive me some idea..
Thanks in advanceHi Lathessh,
Thanks for the reply here is the sample data. Actually we have two datetime field and i want to calculate the Ageing of an employee , by excluding of sunday and holiday between startdate and endDate.
Ageing should be in hours. Thanks
StartDateTime
EndDateTime
HolidayList
2/24/2014 11:55
3/1/2014 16:45
1/1/13 0:00
2/24/2014 12:08
2/28/2014 12:55
1/14/13 0:00
2/24/2014 16:16
2/28/2014 15:20
1/25/13 0:00
2/14/2014 12:56
3/4/2014 16:20
3/27/13 0:00
2/14/2014 12:56
3/4/2014 16:20
3/29/13 0:00
2/14/2014 12:56
3/4/2014 16:20
4/24/13 0:00
2/14/2014 12:56
3/4/2014 16:20
5/1/13 0:00
2/26/2014 13:53
3/4/2014 16:20
8/9/13 0:00
2/27/2014 12:13
3/5/2014 13:05
8/15/13 0:00
3/3/2014 14:42
3/5/2014 17:05
8/20/13 0:00
3/3/2014 14:42
3/5/2014 17:05
8/28/13 0:00
3/3/2014 14:42
3/5/2014 17:05
9/18/13 0:00
3/6/2014 12:28
3/6/2014 17:55
10/2/13 0:00
3/6/2014 12:59
3/7/2014 13:55
10/16/13 0:00
3/6/2014 14:37
3/7/2014 11:15
11/5/13 0:00
3/6/2014 14:57
3/7/2014 12:10
11/15/13 0:00
3/4/2014 17:21
3/10/2014 15:55
12/4/13 0:00
3/4/2014 17:21
3/10/2014 15:55
12/25/13 0:00
3/6/2014 12:08
3/10/2014 14:10
12/31/13 0:00
3/6/2014 13:31
3/10/2014 13:05
1/1/14 0:00
3/6/2014 13:14
3/11/2014 13:20
1/14/14 0:00
3/6/2014 13:14
3/11/2014 13:20
3/17/14 0:00
3/11/2014 14:29
3/13/2014 11:20
4/8/14 0:00
3/11/2014 14:29
3/13/2014 11:20
4/14/14 0:00
3/12/2014 12:56
3/13/2014 11:45
4/18/14 0:00
3/12/2014 12:56
3/13/2014 11:45
5/1/14 0:00
3/12/2014 14:02
3/12/2014 18:10
7/29/14 0:00
3/12/2014 14:22
3/12/2014 18:05
8/15/14 0:00
2/24/2014 16:49
3/14/2014 12:10
8/18/14 0:00
2/24/2014 16:49
3/14/2014 12:10
8/29/14 0:00
2/24/2014 16:49
3/14/2014 12:10
10/2/14 0:00
2/24/2014 16:49
3/14/2014 12:10
10/3/14 0:00
3/12/2014 11:31
3/14/2014 15:55
10/6/14 0:00
3/12/2014 13:31
3/15/2014 12:20
10/23/14 0:00
3/12/2014 15:31
3/15/2014 11:10
10/24/14 0:00
3/12/2014 15:49
3/14/2014 13:55
12/25/14 0:00
3/12/2014 16:19
3/14/2014 15:05
12/31/14 0:00 -
How to identify the follow up relationship between two service ticket
Hi Folks,
How to identify the follow up relationship between two service ticket ?
Please help me on this...
Regards,
Shashi K, ReddyHi Pepe !
Thank you for the answer, but I dont find this structure ET_DOC_FLOW.....
Please let me know is that structure is correct ......
Regards,
Shashi K, Reddy
shashikumarreddy at gmail dot com
Maybe you are looking for
-
How Do I Edit a Text File in PowerShell??
How do i edit the text (or paragraphs) in text files using PowerShell? Thak You
-
How do I transfer old mail & smart mailboxes from old iMac to Macboook Pro?
Hello. I just got my new Macbook Pro with Mac OSX version 10.5.2. I set up my mail account on the computers mac's mail application but I am having trouble transferring my old mail and smart mailboxes from my old computer (iMac with version 10.4.11).
-
On my wish list for the next Acrobat 11.....Export portfolios (with a better variety of portfolios by the way) to HTML5 website instead of a flash website. thanks Nick
-
I would like to make some changes in GR91 payment term
Hi Gurus, I am pretty new to SAP ERP. I got assigned the ticket as requested below. Business requirement: I would like to make some changes in GR91 payment term. 1. 85 days from invoices (instead of 93) 2. Only the 5th of each month ,
-
HCM install questions from a SAP newbie
I have been given the task of installing a new SAP ERP system for development use, but have not been given training on how to do it. I have run through the install starting with the SAP Solution Manager installation master DVD successfully and been a