TRUNC function gives wrong date
I am using the code
SELECT TRUNC(SYSDATE-v_days,'DAY') INTO :P33_FROM_DATE FROM DUAL;
where v_days is a multiple of 7 (this is used to move around weeks), this should give back the start day of the week (if done today it would give 14th), however for some reason in APEX if gives the sundays date. In SQL Dev it works fine and is reporting the Mondays date. The inconsistencies are strange, this is the only process on the page, any ideas whats causing it?
Thanks
Hi Elliot,
According to the SQL User's Guide,
"The starting day of the week used by the format models DAY, DY, and D is specified implicitly by the initialization parameter NLS_TERRITORY."
So I'd look at your application language settings.
- Marco
Similar Messages
-
Week function gives wrong result for last week in year
Week(CreateDate(2011,12,25)) returns 51 - correct
Week(CreateDate(2011,12,26)) returns 53 - wrong
It looks like all last weeks of the year are 53 whereas the next year with 53 weeks should be 2015.
See http://tuxgraphics.org/toolbox/calendar.html for example.
I am running CF9 on Windows 7 with Java V6 update 29.
This is causing me a problem. Any ideas for a workaround?
DougHere is my general solution for my cfc which seems to work for all dates up to 2100 at least.
Hope it can help if you need a Week function to replace the CF one.
<cffunction name="getISOWeekNum" access="public" returntype="Numeric" hint="Gets ISO week number in which date occurs.">
<cfargument name="date" type="date" required="true" hint="Date for which you wish to know the week number">
<cfset var weeknum = 0>
<cfset var isLeap = isLeapYear(Year(date))>
<cfset var dayInWeek = dayOfWeek(date)>
<cfset var isoDayOfWeek = iIf(dayInWeek GT 1, dayInWeek - 1, 7)>
<cfset var nearestThur = dateAdd("d", 4 - isoDayOfWeek, date)>
<cfset var fourthDayOfYear = createDate(year(nearestThur), 1, 4)>
<cfset var fourthDayInWeek = dayOfWeek(fourthDayOfYear)>
<cfset var fourthIsoDayOfWeek = iif(fourthDayInWeek GT 1, fourthDayInWeek - 1, 7)>
<cfset var firstThur = dateAdd("d", 4 - fourthIsoDayOfWeek, fourthDayOfYear)>
<cfset var lastWeek = iIf(fourthDayInWeek EQ 8 OR (isLeap AND fourthDayInWeek EQ 7), 53, 52)>
<cfset var firstIsoDayOfFirstWeek = dateAdd("d", -(fourthIsoDayOfWeek-1), fourthDayOfYear)>
<cfset var firstIsoDayOfLastWeek = dateAdd("d", -7, firstIsoDayOfFirstWeek)>
<cfset var lastIsoDayOfFirstWeek = dateAdd("d", 6, firstIsoDayOfFirstWeek)>
<cfset var weekDiff = iIf(dateCompare(date, firstIsoDayOfFirstWeek, "d") EQ -1, 0, 1)>
<cfif dateCompare(date, firstIsoDayOfFirstWeek, "d") EQ -1 AND dateCompare(date, firstIsoDayOfLastWeek, "d") NEQ -1>
<cfset weeknum = lastWeek>
<cfelseif dateCompare(date, lastIsoDayOfFirstWeek, "d") NEQ 1 AND dateCompare(date, firstIsoDayOfLastWeek, "d") NEQ -1>
<cfset weeknum = 1>
<cfelse>
<cfset weeknum = weekDiff + (dateDiff("d", firstThur, nearestThur) / 7)>
</cfif>
<cfreturn weeknum>
</cffunction>
Doug -
I've calculated it myself and get different results.
FUNCTION calc_customer_profit (p_custid in number)
RETURN NUMBER
IS
v_days number default 0;
v_profit number default 0;
cursor c_profitvalues is
select ren.customer_id
, ren.rent_dt
, ren.return_dt
, ren.daily_rate
from rentals ren
where ren.customer_id = p_custid
order by ren.customer_id;
BEGIN
for r_profitvalues in c_profitvalues loop
v_days := Days_Between(r_profitvalues.rent_dt, r_profitvalues.return_dt);
v_profit := (v_days*r_profitvalues.daily_rate)+v_profit;
end loop;
return v_profit;
END calc_customer_profit;How about this:
SQL> create or replace
2 FUNCTION Days_Between (first_dt IN DATE, second_dt IN DATE := sysdate) RETURN NUMBER
3 IS
4 BEGIN
5 RETURN TO_NUMBER(TO_CHAR(second_dt, 'J')) - TO_NUMBER(TO_CHAR(first_dt , 'J'));
6 END;
7 /
Function created.
SQL>
SQL> set null {null}
SQL>
SQL> select dt1, dt2, Days_Between(dt1, dt2)
2 from (
3 select to_date('24.12.2004', 'DD.MM.YYYY') dt1, to_date('01.01.2005', 'DD.MM.YYYY') dt2 from dual
4 union all
5 select to_date('01.01.2005', 'DD.MM.YYYY') dt1, to_date('08.01.2005', 'DD.MM.YYYY') dt2 from dual
6 union all
7 select to_date('01.01.2005', 'DD.MM.YYYY') dt1, to_date('01.01.2005', 'DD.MM.YYYY') dt2 from dual
8 union all
9 select to_date(NULL, 'DD.MM.YYYY') dt1, to_date('01.01.2005', 'DD.MM.YYYY') dt2 from dual
10 union all
11 select to_date('01.01.2005', 'DD.MM.YYYY') dt1, to_date(NULL, 'DD.MM.YYYY') dt2 from dual
12 );
DT1 DT2 DAYS_BETWEEN(DT1,DT2)
24-DEC-04 01-JAN-05 8
01-JAN-05 08-JAN-05 7
01-JAN-05 01-JAN-05 0
{null} 01-JAN-05 {null}
01-JAN-05 {null} {null}
SQL> -
Search results in iCal give wrong dates
Hi there,
I have a very odd problem with iCal: whenever I search my calendearr all the results have a date in January 2007. When I click one of the results, it does go back to the right date in the calendar. The problem reoccurs when I use TimeLog 4: all the appointments from iCal show up in Timelog , but are given some date in january 2007. Because of this, Timelog is absolutely useless. I tried exporting and importing all my calendars in iCal but to no avail. Anybody here with the same problem? Anybody here with a solution?
Thanks!Whatever os you have installed, post in its forum area.
-
Another thread from today made me think of the basics of TRUNC function used for DATEs. I am confused about what it acutally does.
This is what Oracle Documenations says about TRUNC function without format (like 'DD-MON-YY')
"If you omit fmt, then date is truncated to the nearest day" (Oracle 10Gr2 SQL reference, B14200-02)
SQL> alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS';
Session altered.
Query 1.
SQL> SELECT SYSDATE FROM DUAL;
SYSDATE
06-DEC-2007 14:22:01
Query 2.
SQL> SELECT TRUNC(SYSDATE) FROM DUAL;
TRUNC(SYSDATE)
06-DEC-2007 00:00:00I have three questions
1)Since it 2:22 pm , shouldn't the result of TRUNC(SYSDATE) ie Query 2. be 7-Dec-2007 ?
2) What difference does TRUNC function make in the code apart from setting the time to 00:00:00?
3) Is it safer to add TRUNC for DATEs in the code?
SQL> select sysdate-1 from dual;
SYSDATE-1
05-DEC-2007 14:27:51
SQL> select trunc(sysdate) - 1 from dual;
TRUNC(SYSDATE)-1
05-DEC-2007 00:00:00Added third question
Message was edited by:
user609308it's not a function that rounds up date's it purely truncates to the granularity that you want.
So TRUNC(sysdate) still returns a date datatype (which still contains a date and time portion) but the time portion is truncated i.e. cleared down to it's lowest limit.
Likewise if you TRUNC(sysdate,'YYYY') then it will truncate to the year and take months, days, hours, mins and secs down to their lowest limit hence giving you 1st January of that year with 00:00:00 as the time.
It's very simple really. -
Function sometimes return wrong data
Hi all.
I have a very strange problem with a function. Situation is this: I have an application that handles processes. Each process have a number of steps that is arranged in a matrix like layout. User clicks a step to start/execute it.
Now in a list of current processes i want to have an indication of how "far" a process has reached so i created a function for that and included that in my processlist fetch.
gchs_user_process_steps is the table where the user data for the process step is
gchs_process_steps is the definition table of what steps a process has
gchs_steps is the definition table of all steps
The below function is supposed to return latest step user clicked in the display matrix. tier is used to store the column number and sortorder is the row number of any step user clicked.
CREATE OR REPLACE FUNCTION FN_REACHEDSTEP(p_user_process_id NUMBER)
RETURN VARCHAR IS
ret VARCHAR(30);
ret_id INTEGER;
ret_num INTEGER;
BEGIN
ret := '';
ret_id := 0;
ret_num := 0;
BEGIN
SELECT substr(step_name,1,30),step_id,reached INTO ret,ret_id,ret_num
FROM (
SELECT a.*, rownum rnum
FROM (
SELECT s.name AS step_name, ps.id AS step_id, max((ps.tier*1000)+ps.sortorder) AS reached
FROM gchs_user_process_steps ups, gchs_process_steps ps, gchs_steps s
WHERE ups.gchs_process_step_id=ps.id AND
ps.gchs_step_id=s.id AND
ups.gchs_user_process_id=p_user_process_id
GROUP BY s.name,ps.id
ORDER BY 3 DESC) a
WHERE rownum <= 1 )
WHERE rnum >= 1;
EXCEPTION
WHEN OTHERS THEN
ret:='';
END;
RETURN ret;
EXCEPTION
WHEN OTHERS THEN
ret := '';
RETURN ret;
END FN_REACHEDSTEP;
Now the problem is that the function sometimes return wrong value. The name of the step that is returned is not the one i get if i run the SQL by itself.
So doing a
SELECT substr(step_name,1,30),step_id,reached INTO ret,ret_id,ret_num
FROM (
SELECT a.*, rownum rnum
FROM (
SELECT s.name AS step_name, ps.id AS step_id, max((ps.tier*1000)+ps.sortorder) AS reached
FROM gchs_user_process_steps ups, gchs_process_steps ps, gchs_steps s
WHERE ups.gchs_process_step_id=ps.id AND
ps.gchs_step_id=s.id AND
ups.gchs_user_process_id=21680
GROUP BY s.name,ps.id
ORDER BY 3 DESC) a
WHERE rownum <= 1 )
WHERE rnum >= 1;
and a
select fn_ReachedStep(21680) from dual;
will sometimes return different values.
So is the function fundamentally wrong or is there any cache or something that i've missed that could hold "old" function outputs or am i missing something else.
Thankful for any clues.
I'm using Oracle 10.2.0.1.0
Best regards
/Tomas
Edit: Here's some data that the system uses.
gchs_steps
ID NAME
10000 Step 1
10020 Step 2
10021 Step 3
10022 Step 4
10023 Step 5
10060 Step 6
10140 Step 7
gchs_process_steps
ID GCHS_STEP_ID TIER SORTORDER
10000 10000 0 1
10001 10020 1 1
10002 10021 1 2
10003 10022 2 1
10020 10023 3 5
10060 10060 3 4
10080 10140 3 2
10040 10040 3 3
10100 10160 4 3
10160 10220 4 2
11640 11640 3 1
11660 11660 0 6
11661 11661 0 7
11600 11600 0 4
11620 11620 4 1
gchs_user_process_steps
ID GCHS_USER_PROCESS_ID GCHS_PROCESS_STEP_ID
35541 21680 10002
38441 21680 10020
38440 21680 10000
52062 21680 10060
Relations beween table is
gchs_user_process_steps.gchs_process_step_id=gchs_process_steps.id
and
gchs_process_steps.gchs_step_id=gchs_steps.id
So doing the SQL alone will always return
SUBSTR(..) STEP_ID REACHED
Step 5 10020 3005
but executing the function sometimes returns
FN_REACHEDSTEP(21680)
Step 6
Also removing the rownum limits return and doing a
SELECT s.name AS step_name, ps.id AS step_id, max((ps.tier*1000)+ps.sortorder) AS reached
FROM gchs_user_process_steps ups, gchs_process_steps ps, gchs_steps s
WHERE ups.gchs_process_step_id=ps.id AND
ps.gchs_step_id=s.id AND
ups.gchs_user_process_id=21680
GROUP BY s.name,ps.id,ps.tier, ps.sortorder
ORDER BY 3 DESC
give this result
STEP_NAME STEP_ID REACHED
Step 5 10020 3005
Step 6 10060 3004
Step 3 10002 1002
Step 1 10000 1
Edited by: user4935832 on 2008-sep-19 01:38ORDER BY 3 DESC) a
WHERE rownum <= 1 )
WHERE rnum >= 1;Just some thoughts.
1. You could replace "ORDER BY 3" by "ORDER BY reached"
2. the rownum <=1 and rnum>=1 will return only one row... I don't understand the second one.
Lastly, the difference might come from a duplicate value return by your MAX() function.
If there is two rows (or more) with same MAX, Oracle might return one row arbitrary.
To get the same row, you have to use some aggregation function like MAX() KEEP (DENSE_RANK LAST...).
Here a try for your query, obviously not tested :
SELECT max(substr(step_name,1,30)) keep (dense_rank last order by reached) as step_name,
max(step_id) keep (dense_rank last order by reached,step_name) as step_id,
max(reached) as reached
FROM (SELECT s.name AS step_name,
ps.id AS step_id,
max((ps.tier*1000)+ps.sortorder) AS reached
FROM gchs_user_process_steps ups,
gchs_process_steps ps,
gchs_steps s
WHERE ups.gchs_process_step_id=ps.id
AND ps.gchs_step_id=s.id
AND ups.gchs_user_process_id=21680
GROUP BY s.name,ps.id) a;Nicolas. -
User defined function for removing wrong data ... !!!
Hi Experts,
I'm having a source data like this
1001 545 6895895 1584 654 5478
1002 525 6895895 5084 654 5472
1003 535 6895895 0584 654 5478
1004 545 6895895 5184 654 5478 4XXX &^%% 1004 545
1005 555 6895895 5824 654 5478 8547 0000 522# ##00
1006 565 6895895 5844 654 5478
1007 575 6895895 5845 654 5478
1008 585 6895895 5846 654 5478
Some times I get a wrong data in my source file (above 4 and 5 th rows) .
My requirement is to remove these kind of wrong lines(entire lines to be removed) whenever XI reads the data. For this what is the standard function i can use in mapping. I thought I can create my own function to remove such kind of false data lines. It would be helpful for me if some body provide me the java code.
Thanks very much.Hi Swarna,
1001 545 6895895 1584 654 5478
1002 525 6895895 5084 654 5472
1003 535 6895895 0584 654 5478
1004 545 6895895 5184 654 5478 4XXX &^%% 1004 545
1005 555 6895895 5824 654 5478 8547 0000 522# ##00
1006 565 6895895 5844 654 5478
1007 575 6895895 5845 654 5478
1008 585 6895895 5846 654 5478
is it the .txt file you are keeping. Or the input in your mapping.
You just Tell your requirement properly.
If it is input in Mapping. Map like this
input ----->subtring( starting position 0 andNumber of characters 30) ---->Output
substring is a standard Text function.
Thanks. -
How to use TRUNC function with dates in Expression Builder in OBIEE.
Hi There,
How to use TRUNC function with dates in Expression Builder in OBIEE.
TRUNC (SYSDATE, 'MM') returns '07/01/2010' where sysdate is '07/15/2010' in SQL. I need to use the same thing in expression builder in BMM layer logical column.
Thanks in advanceuse this instead:
TIMESTAMPADD(SQL_TSI_DAY, ( DAYOFMONTH(CURRENT_DATE) * -1) + 1, CURRENT_DATE) -
TRUNC() giving wrong data in different versions of Oracle DB
Hi All,
I have two oracle data base versions. I need to insert into one temp table with select statement. When i use the same query in both environment am getting different results. Can you please help me on that.
Version:1
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Version: 2
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
NLSRTL Version 10.2.0.5.0 - Production
Query we used:
insert into my_temp_table
select v_name,trunc(d_charge_date)
from table1;
my_temp_table structure:
v_name varchar2(30),
d_charge_date date;
Note: Date columns represented with mm/dd/yyyy format....
in table1 i have data like this....
v_name
d_charge_date
xxx
12/2/2012
yyy
10/23/2010
abc
9/29/2013
after the insertion into temp table am getting the result like below...
select * from my_temp_table;
If i run this query in version 1 am getting the correct data..
v_name
d_charge_date
xxx
12/2/2012
yyy
10/23/2010
abc
9/29/2013
but if i run the same insert query in version 2 getting the wrong data
v_name
d_charge_date
xxx
12/2/2011
yyy
12/2/2011
abc
12/2/2011
If i remove the trunc from the insertion statement i didn't get the wrong data like above...
I don't know the exactly reason. So can you please help me to identify this cause...Hi i think the global temporary table having this issue in version b what i have mentioned above.
insert into /*+append*/global_temporary_temp
(v_policy_no,n_seq_no,d_next_chgdue_date,v_charge_freq,v_cntr_stat_code,v_iu_au_base,d_cntr_start_date)
select distinct a.v_policy_no,a.n_seq_no,trunc(a.d_next_chgdue_date),a.v_charge_freq,b.v_cntr_stat_code,c.v_iu_au_base,b.d_cntr_start_date
from table_a a,table_2 b,table_3 c
where a.v_status = 'A'
and a.v_charge_freq is not null
and trunc(a.d_next_chgdue_date) <= trunc(sysdate)
and b.v_cntr_stat_code in ('NB010')
and a.v_policy_no = b.v_policy_no
and a.n_seq_no = b.n_seq_no
and a.v_plri_code = c.v_plan_code
and a.v_parent_event_code = c.v_parent_event_code
and a.v_charge_pcode = c.v_charge_pcode
and a.v_charge_code = c.v_charge_code -
Cache manager give me a wrong date
This is my problem:
I move RPD file and Catalog from DEV instance to PROD instance to have same dashboard and reports in both instances, but when I access to Interactive Dashboard, and check Cache Manager in Administration Tool, it keep a wrong date, instead of give me 2010 year, it gives me 3910 year, and because of this I can not run some reports in my dashboard.
I want to notice that not only move RPD and Catalog, I also change information in NQSConfig file, like reposiroty pointing to my RPD, I also change information in instanceconfig.xml file, like CatalogPath, to pointing to the Catalog I moved.
So, if you can help me with this issue, I really appreciate it.
Regards,
ArnulfoHi Nico, thanks for your quick answer but this error is not related with the browser cause we have the following situation:
1.- First we delete all rows from the following table afiandwh.s_nq_acct that have "3910" as year date
2.-Then we run this query: select count(*) from afiandwh.s_nq_acct where to_char(start_ts,'YYYY')='3910'
And the result is 0 rows
3.-So after that we entered to OBIEE Administration tool and in the physical layer we entered to OBI Usage Tracking and then in Table
S_NQ_ACCT we made an "Update Row Count" and when it finished we run again the query of step 2 and we had 1 new registry in the
database with "3910" date .
So BI Server is generating these wrong dates, any idea why this could be happening? -
when i use in my proceadure where trunc(timesent_acct) between '30-AUG-2006' and '27-SEP-2006' it returns 410 rows
but
when i use where timesent_acct between '30-AUG-2006' and '27-SEP-2006' it returns me 400 rows
what actually happened out there my data stored in timestamp like this '9/27/2006 10:24:18 AM'
what trunc actually do with dates
thanksHello,
Trunc() without parameter retire the hour part of a date.
SQL> alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS'
2 /
Session modifiée.
SQL> select sysdate, trunc(sysdate) from dual
2 /
SYSDATE TRUNC(SYSDATE)
07/11/2006 14:51:04 07/11/2006 00:00:00
SQL> Francois -
SimpleDateFormat gives the wrong date
Hi
I'm retreiving a java.sql.Date, and using a SimpleDateFormat("dd.MM.yyyy") to format it. For some reason, some of my users (located in other countries) end up with the wrong dates (it's an applet)and others don't. Any similar experiences/thoughts?Thanks for the info....I'm using 1.3, so that's unlikely to be it.
I narrowed it down to a timezone problem difference problem between my applet and the server. Does anyone know how I can get an applet to behave like it's in a different timezone. Is there a single place I can set it (like maybe a System.setTimezone or something?). I don't want to go around messing with my Locales in every single Date or Calendar object I use. I just need my applets to think they're running in the same timezone as the server. Any similar experiences/quick fixes? -
Bridge CS6 occasionally displaying wrong 'Date Created' for .NEF's
I noticed this problem only recently, and this the third time it happens (that I know of).
Sometimes my Bridge puts a wrong Date Created (not Date File Created or Date File Modified) on a NEF RAW file, whilst the next one (taken perhaps just a few seconds or a minute later) has the proper date. Strangely the Date File Created & Modified do show the proper creation date.
Example to clarify:
Metadata viewed on my D90 itself
Photo 1 taken on: 30/09/2013, 9:03:26 PM (DD-MM-YYYY)
Photo 2: 30/09/2013, 9:07:52 PM
Photo 3: 30/09/2013, 9:08:12 PM
Photo 4: 30/09/2013, 9:08:34 PM
Photo 5: 30/09/2013, 9:08:54 PM
Photo 6: 30/09/2013, 9:09:34 PM
viewing in bridge:
Photo 1: Date Created: 30/09/2013, 9:03:26 PM
Date File Created: 30/09/2013, 9:03:26 PM
Date File Modified: 30/09/2013, 9:03:26 PM
Photo 2: Date Created: 30/09/2013, 9:07:52 PM
Date File Created: 30/09/2013, 9:07:52 PM
Date File Modified: 30/09/2013, 9:07:52 PM
Photo 3: Date Created: 23/09/2013, 7:42:02 PM
Date File Created: 30/09/2013, 9:08:12 PM
Date File Modified: 30/09/2013, 9:08:12 PM
Photo 4: Date Created: 30/09/2013, 9:08:34 PM
Date File Created: 30/09/2013, 9:08:34 PM
Date File Modified: 30/09/2013, 9:08:34 PM
Photo 5: Date Created: 04/09/2013, 10:14:45 AM
Date File Created: 30/09/2013, 9:08:54 PM
Date File Modified: 30/09/2013, 9:08:54 PM
Photo 6: Date Created: 04/09/2013, 10:15:06 AM
Date File Created: 30/09/2013, 9:09:34 PM
Date File Modified: 30/09/2013, 9:09:34 PM
As you can see, it's not a 'stable' deviation.
I could live with it, apart from one problem: the batch rename function only has 'Date Created' as option for renaming with date.
It's also quite annoying for my photography study, since my teachers might get confused by the wrong date in the Metadata when I turn my photo in.
I tried compacting the cache whilst my camera's SD card wasn't connected (so the files aren't 'available' anymore), no difference.
Another thing I tried was to hook my SD card up on a different computer, same result.
So it might be my SD card, but that doesn't explain why the correct date is shown on my D90 itself, though.
If anybody here has an idea how to fix / avoid this problem, help is much appreciated.
Greetings,
AlexI have never inserted the 8GB card in the D3000 before just a minute ago.
And I just took 7 rapid photo's of my previous post (~1s interval)
All 7 displayed actual date in my camera, the first 4 displayed a wrong date in bridge (24/09/2013, times; 2:12:16PM, 2:12:20PM, 3:09:24PM and 3:10:26PM). Last 3 displayed proper time in bridge.
So yea, I'm pretty sure something is wrong. I'll try formatting the SD card (as suggested before) but however you look at it, this doesn't add up.
edit:
Well I figured out one thing: if I view the photo's directly on my SD card through bridge, it shows the same date for Date Created, Date File Created and Date File Modified.
Quite logical, to be honest, since I am viewing the date the file was created on the camera.
However, if I export photo's with Adobe Photo Downloader (or whatever it's called again), it displays the date those copies were created (by Date File Created). Date File Modified is still ~the same as Date Created since it hasn't been modified since the original creation.
edit2:
The formatting seems to have solved the issue, for now anyway. Still have no clue why the SD card got such (occasional) cases of drunkness. -
Wrong date and time in apple's mail client
All mails in my inbox are displaying date at 1429 a.c. Although through my web gmail interface, dates are correct the mac client is fault. I also tried with Thunderbird e-mail client and i also get wrong date and time. I checked the date and time preferences and everything is correct. Any suggestions?
ThanksHi,
In the Initial screen, please remove the tick for Display Header. It will not give any header details after execution. If you want to remove only date, you just check with your ABAPer, he can help by changing in program.
Thanks
Kishore Babu -
FM which gives the date if we add 'x' number of days to the current date.
Hi all,
can you plz tell me the FM which will give me the exact date if i add some ' X ' number of days to the present date.
in detail -->my inputs would be 1)DATE
2)no of days
i need--> the exact date which comes after those days get added to the given date.
PLZ HELP ASAP.
Rgds,
REDDY.Hi,
You can use FM RP_CALC_DATE_IN_INTERVAL.
data: wa_date like sy-datum.
*Add 21 days to current date.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 21
months = 0
signum = '+'
years = 0
importing
calc_date = wa_date.
write: / wa_date.
Regards,
Ferry Lianto
Maybe you are looking for
-
Random Delete tool with Scriptographer
Hi, I am trying to refine the RandomTools created for Scriptographer so that it suits my preference, but I can't figure it out in Javascript. Not knowing a lot of Javascript don't help me either! Here is the script, simplified to conserv only the Del
-
Need Help Desparately For Project
Hello Everyone, My problem is that I have a JFrame with a two JPanels inside of it. Inside one of the JPanels I have a JTextArea and the other a JTextField. In the class constructor I create this objects and using show() display them. I want the cont
-
Unable to save indt files at all
Hi, I've looked through the forums but haven't found a solution that's worked or the quite the same problem as I have, so here it goes: I have InDesign CS6 version 8.0.1 with Windows 7 64-bit however I have been unable to save .indt files sent to me
-
Hello, I am java beginner and trying to write a Swing based application with an observer-pattern When the user clicks on the button named "showTable" after giving two Object rows values in Min and Max textfields (min < max all the time), the values o
-
Script Error and Unclosable Tabs
I have a script: Script: chrome://browser/content/tabbrowser.xml:1617, and it keeps failing to close a tab. It then locks a "New Tab" open and won't let me close any tabs at all until I restart. If I open new tabs, I cannot close those either. Anyone