How to calculate Number of Hours between 2 dates
Hi,
I have a Column in a table of datatype DATE i.e. Update_Date. Now How do I calculate number of hours passed starting from this date entered in the Update_Date column to SYSDATE. e.g. if the date in column is 2-FEB-2009 and the sysdate is 2/2/2009 2:07:40 AM it should give me 24. How can I get this number of hours.
Update_Date - Sysdate = Number of Hours.
Thanks
When you subtract two dates in Oracle, you get a difference in terms of days. Just multiply that by 24 to get hours.
SELECT (sysdate - update_date) days,
(sysdate - update_date) * 24 hours
FROM your_tableThat said, it is not obvious how your example works. You state
if the date in column is 2-FEB-2009 and the sysdate is 2/2/2009 2:07:40 AM it should give me 24Since both dates are on February 2, 2009, the only difference is in the time component. If we assume that the time component of the UPDATE_DATE value is midnight since it is not specified, there is a little more than 2 hours of difference between the two dates. How is it that you determine there are 24 hours of difference?
Justin
Edited by: Justin Cave on Feb 2, 2009 10:39 AM
Similar Messages
-
Hello -
I've been tearing my hair out over this problem i'm trying to solve, probably just been staring at it too long which is making it worse -
I have a series of open support tickets which are supposed to be updated on a daily basis, the problem is that they aren't always being updated daily. So, the business wants to know the number of days from when a ticket was last updated and today's
date. I have this basic calculation and it's working fine, however now the business wants to exclude weekends from the calculation. The other problem is that some reps DO go in on weekends and update their tickets, so sometimes there will be updates
made on weekend dates.
To give an example -
Today's date is 2014-02-10 (Monday). A ticket was last updated last Thursday, 2014-01-30. The difference between the two dates is 11, so it's been 11 days since the ticket was last updated. Now, if I exclude Saturdays and Sundays, then
it's actually been 7 days since the ticket was last updated. I'm not sure how to do this in T-SQL.
Now, to further complicate the problem, sometimes a ticket IS updated on a Saturday or Sunday. So, if a ticket was updated on 2014-02-02 (Sunday), then it should be counted. Again i'm not sure how to do this.
What gets me is that this is probably fairly simple and i've just been staring at it too long. In the meantime, can someone offer some guidance?
Thanks!!I've adapted this from a function on my blog. you will need to add set the YourTicketTable to where ever your tickets are stored.
CREATE
FUNCTION [dbo].[CalcWorkDaysBetween](@StartDate
As DateTime,@EndDate
AS DateTime)
RETURNS
INT AS
BEGIN
SET @EndDate
=DATEADD(DAY,1,@EndDate)
DECLARE @Count
AS Int= 0
DECLARE @Date
As Date=@StartDate
WHILE @Date
< @EndDate
BEGIN
IF (DATEPART(WEEKDAY,@Date)IN(1,7)
OR (SELECT
Count(*)
FROM YourTicketTable WHERE TicketDate=@Date)=1)
BEGIN
SELECT @Count = @Count
+ 1
END
SELECT @Date=DATEADD(Day,
1,@Date)
END
RETURN
DATEDIFF(DAY,@StartDate,@EndDate)- @Count
END
Regards, -
Count number of hours between dates excluding holidays/weekends
Hello all
I havent worked with dates extensively and was recently asked to create a report where Im looking for the number of hours between two dates only counting business days.
So for example I have data as follows
Created 2011-03-30 15:00:00
Processed 2011-03-30 15:03:46
Fulfilled 2011-04-01 17:25:02
Mailed 2011-04-01 17:45:00
For a total of looking from the CREATED and MAILED dates
50 hours 45 minutes
Im also trying to exclude weekends and holidays, i was reading around and was actually able to also find a table of dates where I have the main date, HOLIDAY_IND column and WEEKDAY_IND column
So the calender table i have looks similar to
CALENDER_DATE HOLIDAY_IND WEEKDAY_IND
2011-03-31 Y Y
2011-04-01 N Y
2011-04-02 N N
Im really quite stumped as to where to begin
I was thinking of trying to write it with PL/SQL but i dont have the proper user access to create procedures/functions, so looks like straight up SQL
Any help appreciated!Hi,
Depeneding on your data and your requirements, you can do something like this:
SELECT created_DATE,
, mailed_date
, 24 * ( (mailed_date - created_date)
SELECT COUNT (*)
FROM table_o_dates
WHERE main_date > created_date
AND main_date < TRUNC (mailed_date)
AND ( holiday_ind = 'Y'
OR weekday_ind = 'N'
) AS hours_between
FROM table_x
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using.
What do you want to do if created_date or mailed_date is not a work day? Include examples in you data and results. -
How to calculate number of days between two date in Template design?
Hello guys
I have a situation where I have to create a template that returns data, and one of the thing of the existing report is that there is a column that is actually the number of days between start date and end date columns..
So in template, how would I be able to do the same? I have start date and end date columns on the template, now when I created another column using expression like end date - start date and preview the template, I am getting errors saying :
Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert 03/31/2009 to number.
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
Please advice
ThanksHi
There is an extension function you can use, from the javadoc:
date_diff
public static long date_diff(java.lang.String format,
java.lang.String fromDate,
java.lang.String toDate,
java.lang.String locStr,
java.lang.String tzID)
Method to get the difference between two dates in the given locale. The dates need to be in "yyyy-MM-dd" format. This function supports only Gregorian calendar.
Parameters:
format - the format to which the difference is required; allowed formats are y (for Year), m(for month), w(for week), d(for day), h(for hour), mi(for minute), s(for seconds) and ms(for milliseconds)
fromDate - the first date
toDate - the second date
locStr - locale string -> lang-Territory
tzID - timezone ID ->http://java.sun.com/j2se/1.4.2/docs/api/java/util/TimeZone.html
Returns:
the difference in dates in the desired format
For example
<?xdoxslt:date_diff(‘d’,’2009-09-14’, ‘2009-09-20’,’en-US’,1)?>
give a result of 6
You can substitute in columns for the dates, just remember the date format required.
Regards
Tim -
How to Calculate number of months between two dates
Hi All,
In one of the fomr developments, I have to calculate the
Number of Days
Number of Months ( Considering Leap Year) provided by the dates, end user enters in the form,
After going thorugh some forum discussion, I have come to know about so many things which were not clear till now.
I have gone through various forums too, some one suggets to make use of FORM CALC and some other JAVA SCRIPT. But the logic i want to build in java script.
The most interesting point is the DATE object is not getting created when i write the below code
var startDate = new DATE(oYear, oMonth, oDay);
I am still not clear, that really the date object gets created in Adobe form If so the why the alert box is getting populated when i write below lines
var oTemp = startDate.getFullYear();
xfa.host.messagebox(oTemp);
So, there are so many unclear things,
If any one can help me by suggesting the approach and how to build the logic in the JavaScript I would be really thankful
Regards
PavanChandHi,
ChakravarthyDBA wrote:
Hi
I want number of Sundays between two dates
example
number of Sundays count between '01-04-2013' and '30-04-2013' in one select query I have to include this as sub query in my select statement.Here's one way:
SELECT early_date
, late_date
, ( TRUNC (late_date + 1, 'IW')
- TRUNC (early_date, 'IW')
) / 7 AS sundays
FROM table_x
;This does not depend on your NLS settings.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
Point out where the statment above is getting the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ {message:id=9360002} -
How to calculate number of days between fixed date and hire date in schema
i want to calculate the number of days between a fixed date en the hire date (infotype 041)
If i read the documentation right, i should use the following command:
HRS=YDXA02
Variable 3 (the x) is the fixed data.
My question is how do i program the variable x?
Let's say the date 01.01.2008
Any help would be welcomeI assume we are talking about PCR for payroll. In this case look at documentation for operation NUM:
OOOOOO
Xnnnnn
X Table
nnnnn Table field
nn Date type 'nn' from the Date Specifications infotype (0041)
Date types are taken from table T548Y.
Your operation would look like:
NUM=Faaesb
F Fixed indicator for deadline calculation
aa Date type: Start date of period to be
calculated; if the date type is not 'nn,'
the second position is left blank.
e Unit, in which the duration is calculated:
T = days
W = week
s End date of period to be calculated:
(blank) End of current payroll period
J End of current calendar year
A Start of current calendar year
B Start of WPBP period
No other specifications are possible.
So it depends on what kind of fixed date you need.
Hope it helps,
Carlos. -
How to calculate number of hour for projects
Hello Experts
I got a table which has all the information about employee. I need to find the number of hours an employee worked on a project. Let say employee ‘ABC’ worked on 2 different projects. I need to find out how many hours he worked on each project. In my table I’ve
employee_id, employee_name, proj_startdate, proj_enddate, finishtime fields.
Can please somebody show me how I can find out the hours?
Thanks a lot in advanceit's useless...
but you need to add a field 'project_id', if an employee works for multiple projects..
furthermore, you can also add a field named like 'working_hours' into your table...
your table new structure, let's say the table name is employee
employee_id, employee_name, project_id, proj_start_date, proj_end_date, working_hours
then you can use the below codes to update it and make your data be more clear...
UPDATE employee a
SET a.working_hours = (SELECT (proj_end_date-proj_start_date)*24 FROM employee b
WHERE a.employee_id = b.employee_id
AND a.project_id = b.project_id);
BUT, you have to add a constraint on your table to make the fields(employee_id, project_id) be unique -
How to calculate number of days between Calendar objects
Hi,
I need to calculate the number of days between two Calendar objects. Here is some sample code:
Calendar now = Calendar.getInstance();
now.set(Calendar.HOUR_OF_DAY, 0);
now.set(Calendar.MINUTE, 0);
now.set(Calendar.SECOND, 0);
now.set(Calendar.MILLISECOND, 0);
// get a calendar that represents a day in the past
Calendar aDayInThePast = getADayInThePast();
aDayInThePast.set(Calendar.HOUR_OF_DAY, 0);
aDayInThePast.set(Calendar.MINUTE, 0);
aDayInThePast.set(Calendar.SECOND, 0);
aDayInThePast.set(Calendar.MILLISECOND, 0);
// how can I calculate the number of days ago this was??
//it would also be useful to get back a negative number if the day is in the futureMy favorite answer so far is reply 15 by Marc__: http://forum.java.sun.com/thread.jspa?threadID=488668&start=15
-
How to calculate number of sundays and saturdays between two Dates
friends i want to calculate how many Sundays come in two Dates
i have tried following code which is hard coded i have to impliment method which can give me number of Sundays between two Dates
please help me
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar ;
import java.util.GregorianCalendar;
public class DateDiffCalculator {
private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MMM-dd");
public DateDiffCalculator() {
public static Date getDate (String date) throws Exception {
//log.debug(" "+date);
return SDF.parse(date);
public static Date getDate (Date date) throws Exception {
// log.debug("date is "+date);
return getDate(SDF.format(date));
public static long getDiffInDays(Date d1,Date d2) {
boolean isdiffGreaterThanYear=false;
long diffInMilliSeconds=d1.getTime()-d2.getTime();
return diffInMilliSeconds/(1000*60*60*24);
public static int getYear(String date) {
//String[] day= {Sun,Mon,Tue,Wed,Thu,Fri,Sat};
Integer year=new Integer(date.substring(0,4));
return year.intValue();
public static int getMonth(String date) {
//String date.substring(5,7);
System.out.println(" "+date.substring(5,8));
String m= date.substring(5,8);
int month=0;
if(m.equalsIgnoreCase("Jan")) {
month=1;
if(m.equalsIgnoreCase("Feb")) {
month=2;
if(m.equalsIgnoreCase("Mar")) {
month=3;
if(m.equalsIgnoreCase("Apr")) {
month=4;
if(m.equalsIgnoreCase("May")) {
month=5;
if(m.equalsIgnoreCase("Jun")) {
month=6;
if(m.equalsIgnoreCase("Jul")) {
month=7;
if(m.equalsIgnoreCase("Aug")) {
month=8;
if(m.equalsIgnoreCase("Sep")) {
month=9;
if(m.equalsIgnoreCase("Oct")) {
month=10;
if(m.equalsIgnoreCase("Nov")) {
month=11;
if(m.equalsIgnoreCase("Dec")) {
month=12;
return month;
public static int getDay(String date) {
Integer day=new Integer(date.substring(9,11));
return day.intValue();
public static int getNumberofSundays(String d1,String d2) throws Exception {
//d1 is leave start date d2 is leave end date
// get object in Date form
Date date1=getDate(d1);
Date date2=getDate(d2);
// now get calender objects from it
GregorianCalendar c1= new GregorianCalendar(getYear(d1),getMonth(d1),getDay(d1));
GregorianCalendar c2= new GregorianCalendar(getYear(d2),getMonth(d2),getDay(d2));
// get period
long leavePeriod = getDiffInDays(date1,date2);
return 12; // it should return number of sundays but we type 12 to perform compilation
public static void main(String[] arg)throws Exception {
System.out.println(" "+getNumberofSundays("2005-Oct-07","2006-Mar-01"));
}thanks now i have modified the get Month Code
as follows
public static int getMonth(String date) {
//String date.substring(5,7);
System.out.println(" "+date.substring(5,8));
String m= date.substring(5,8);
int month=0;
if(m.equalsIgnoreCase("Jan")) {
month=0;
if(m.equalsIgnoreCase("Feb")) {
month=1;
if(m.equalsIgnoreCase("Mar")) {
month=2;
if(m.equalsIgnoreCase("Apr")) {
month=3;
if(m.equalsIgnoreCase("May")) {
month=4;
if(m.equalsIgnoreCase("Jun")) {
month=5;
if(m.equalsIgnoreCase("Jul")) {
month=6;
if(m.equalsIgnoreCase("Aug")) {
month=7;
if(m.equalsIgnoreCase("Sep")) {
month=8;
if(m.equalsIgnoreCase("Oct")) {
month=9;
if(m.equalsIgnoreCase("Nov")) {
month=10;
if(m.equalsIgnoreCase("Dec")) {
month=11;
return month;
but question remains same how to calculate number of Sundays Between 2 Dates -
Get number of hours between two dates and two hours using factory calendar
Hello all,
I have the following requirement: I need to calculate the number of hours between two dates and two hours (start date- finish date and start hour-finish hour) or timestamps using a factory calendar. I must program it on CRM environment.
Does anybody know a function module that makes it?
Thanks in advance.
CarmenPlease check function module DURATION_DETERMINE.
- April King -
How to calculate number of rows for perticular characterstic in SAP BI Bex
Hi experts,
Please let me know how to calculate ' number of rows ' for perticular characterstic in Bex query.
Thanks & Regards,
Babu..Hello,
You can try this
Create a CKF and assign the vale 1 to it. Open the query and select Character where you want to display ' number of rows ', go to properties windows, select 'display', in the results row drop down box, select 'always display'.
Thanks.
With regards,
Anand Kumar -
How to calculate number of threads running on Windows 2000 terminal?
How to calculate number of threads running on Windows 2000 terminal for the oracle process?
I have installed Oracle 9i DataBase with 6 patch(9.2.0.6.0) on Windows 2000 Terminal.
But,after database is started up, when i check up the sessions in v$session view.
It is showing like for SYSTEM osuser alone, 10 ORACLE.EXE sessions running on this server machine in active state.
Why it is creating 10 ORACLE.EXE sessions for a single Oracle Server.
This is the output of v$session view.
SQL> select terminal,osuser,status,sid,serial#,program from v$session;
TERMINAL OSUSER STATUS SID SERIAL# PROGRAM
IMGDBSVR SYSTEM ACTIVE 1 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 2 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 3 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 4 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 5 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 6 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 7 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 8 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 9 1 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 10 1 ORACLE.EXE
SUGANTHI_DBA suganthi ACTIVE 11 91 sqlplusw.exe
11 rows selected.
SQL>This is how i have related these two views:
SQL> select s.terminal,s.osuser,s.status,s.paddr s_paddr,b.paddr p_paddr,s.program
2 from v$session s,gv$bgprocess b
3 where s.paddr=b.paddr;
TERMINAL OSUSER STATUS S_PADDR P_PADDR PROGRAM
IMGDBSVR SYSTEM ACTIVE 33AF2270 33AF2270 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF2654 33AF2654 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF2A38 33AF2A38 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF2E1C 33AF2E1C ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF3200 33AF3200 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF35E4 33AF35E4 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF39C8 33AF39C8 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF3DAC 33AF3DAC ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF4958 33AF4958 ORACLE.EXE
IMGDBSVR SYSTEM ACTIVE 33AF4D3C 33AF4D3C ORACLE.EXE
10 rows selected.
SQL>
Here, It shows 10 sessions are running.
Whether this means 10 threads are running on the particular server or not? -
Subtracting two timestamps and showing the number of hours between them.
Hello Folks,
What I have is two tables, each of them has a timestamp column. I want to do a select with a join that will show a column with the number of hours between the two times.
(I have added the columns as timestamp(0) since I have no need for the decimals)
Here's what I have:
table one name: conc_test
table one info:
P_DATE-------JOB_NO-----MIX---POUR_NO----AMB_T---CONC_T--SLUMP---AIR---DENSITY---CYL_CAST_TIME
09-MAR-10---9-12-796-----80----100309A------2.5--------16----------135------2.5----2501-------09-MAR-10 10.00.00 AM
table two name: rls_break
table two info:
JOB_NO----POUR_NO-----CYL_ID----SPEC_STR---STR----MIX---BREAK_D_T
9-12-796---100309A----100309A1------20-----------27-----80----10-MAR-10 07.15.00 AM
(I put the --- between the columns so it would be more legible for forum reading, fyi)
This is what I was trying to do:
select
rls_break.cyl_id "Cylinder ID",
rls_break.mix "Mix",
trunc(rls_break.break_d_t-conc_test.cyl_cast_time) "Age",
rls_break.spec_str "Specified Strength",
rls_break.str "Specimen Strength"
from rls_break inner join conc_test on rls_break.pour_no = conc_test.pour_no
where pour_no = '100309A';
I want the "Age" column to show the total number of hours between the cast time (column cyl_cast_time from conc_test) and the break time (column break_d_t from rls_break)
Thank's for any and all help.(I put the --- between the columns so it would be more legible for forum reading, fyi)Please put the tag before and after your examples.
See: http://forums.oracle.com/forums/help.jspa for more information reagarding tags. (scroll a bit down)
I want the "Age" column to show the total number of hours between the cast time (column cyl_cast_time from conc_test) and the break time (column
break_d_t from rls_break)
Do a search on 'NUMTODSINTERVAL' or 'time difference' on this forum, you'll find many related examples. -
How to calculate the Time difference between 2 dates
HI All,
I am using HR_hk_diff_btw_2_dates to calculate the employee service dates.
For that i am inputing his hire date and Term dates and Output format as '05' i am getting output perfectly....
But problem is whe i am inputting the employee hire date is Dec 1 2007 and Term date is
March 31 2009 It is coming as 1 year 3 months 31 days instead of 1 year 4 months directly .......How could we make it make last date also working day and get the O/p as 1 year 4 months ?Please Advice..
Regard
sas1. FM for difference betwwen two times:SCOV_TIME_DIFF
Import parameters Value
IM_DATE1 2008-01-01
IM_DATE2 2008-01-01
IM_TIME1 10:00:00
IM_TIME2 11:30:00
Export parameters Value
EX_DAYS 0
EX_TIME 01:30:00
2. SD_CALC_DURATION_FROM_DATETIME : Finds the difference between two date/time and report the difference in hours
L_MC_TIME_DIFFERENCE : Finds the time difference between two date/time -
How to Calculate Sum of Difference between two dates
Hi,
I'm using BI Publisher in Siebel CRM.
In RTF template I have the following expression to calculate the Difference between dates
<?xdoxslt:date_diff( 'd' , psfn:totext(CIRGSubmittedDate,"yyyy-MM-dd","MM/dd/yyyy"), psfn:totext(Done,"yyyy-MM-dd","MM/dd/yyyy"), $_XDOLOCALE, $_XDOTIMEZONE)?>
The above expression works for me to calculate the dates.
I need to calculate the Sum of all these dates for a Group.
Want to know the Syntax for Sum function using Date_diff.
Tried the following and didn't work.
<?Sum(xdoxslt:date_diff( 'd' , psfn:totext(CIRGSubmittedDate,"yyyy-MM-dd","MM/dd/yyyy"), psfn:totext(Done,"yyyy-aMM-dd","MM/dd/yyyy"), $_XDOLOCALE, $_XDOTIMEZONE))?>
Not sure what I'm doing wrong here...
Anyone please help...
Thanks
PVHi
To break the diff between 2 dates into days, hours, minutes, sec -- you can use the following:
select to_char( created, 'dd-mon-yyyy hh24:mi:ss' ),
trunc( sysdate-created ) "Dy",
trunc( mod( (sysdate-created)*24, 24 ) ) "Hr",
trunc( mod( (sysdate-created)*24*60, 60 ) ) "Mi",
trunc( mod( (sysdate-created)*24*60*60, 60 ) ) "Sec",
to_char( sysdate, 'dd-mon-yyyy hh24:mi:ss' ),
sysdate-created "Tdy",
(sysdate-created)*24 "Thr",
(sysdate-created)*24*60 "Tmi",
(sysdate-created)*24*60*60 "Tsec"
from all_users
where rownum < 50
HTH
RangaReddy
Maybe you are looking for
-
MacBook Pro Mid-2010 15" Frequent Kernel Panics
Hello all, I have been experiencing frequent kernel panic shutdowns (2-3 a day) since upgrading to Yosemite. To compound matters, after each panic is an additional restart as my computer is already in the process of restarting, so I never get the cra
-
Java causes BLUE SCREEN OF DEATH
I am currently running the newest version of the JRE v. 1.4 update 5 Every time Java runs on my system Windows XP Professional crashes and I get the Blue Screen of Death. I attempted to uninstall Java but that would also crash my system. So I reforma
-
Hi, In the attached VI,Iam giving temperature input from a string array,then converting it to binary and again converting to a decimal inorder to display in the thermometer.But while running it is giving incorrect values.what to do with this VI?
-
How to create a Forum with video clips
I would like to set up a forum where people can only use text in subjects of the threads ... but people only post video clips under the thread. People replied to that message by sending a video clips ... no text allowed in body messages. As I am a be
-
Adobe Application Manager -says it's counterfeit and it's not.
when trying to launch my Application manager, I get this message: "Adobe Genuine Software Validation Failure. The product you are trying to install is not an Adobe Genuine Software and appears to be counterfeit." what should i do?