Time Zone conversion of a date/timestamp in ABAP

Is there a function available in 4.5B that can convert a date/timestamp from one timezone to another?

try FMS
/SAPTRX/RANGE_CONVERT      
CONVERT_TIME_TERMS         
CIF_GEN3_CONVERT_DATETIME  
CIF_GEN3_CONVERT_TIMESTAMP 
CIF_GEN_CONVERT_DATETIME   
CIF_GEN_CONVERT_TIMESTAMP  
CIF_GEN4_CONVERT_DATETIME  
CIF_GEN4_CONVERT_TIMESTAMP 
CO_SF_CONVERT_TIMES_OPR    
CXTP                       
DATE_TIME_CONVERT          
POINT_IN_TIME_CONVERT      
FITP_CONVERT_LOCAL_TIME_GMT
<u><i><b>
Tip : GO to -> SE37 and search key word TIME OR Convert</b></i></u>
Hope this’ll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"

Similar Messages

  • I have a iphone5. I went to dubai there it was working properly. On my way back in the plane i turned the manual time zone selection in the date

    I have a iphone5. I went to dubai there it was working properly. On my way back in the plane i turned the manual time zone selection in the date & time setting and changed it to new delhi. when i landed back and tried to use the vodafone network whose sim is installe in te mobile NO SERVICE showed up. I tried to select the time zone & network selection from the carrier but manual selection is not accepted . I got a tiick mark at the service provider name but still no service status remains. After 2 days In the time zone automatic selection has started working and is showing new delhi but still automatic & manual network selection is not working. NO SERVICE is still shown . I m not able to make any calls. Internet through WIFI is working. Kindly help. 

    Hello, swatiy.82. 
    Thank you for visiting Apple Support Communities.
    I would recommend trying the steps in the article below when experiencing this issue.
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/ts4429
    Cheers,
    Jason H.

  • Time Zone Conversion with out using function and with out alter

    Hi All,
    I am able to see 1Hr difference in my date fields of SQL output because in UI (User Interface)  date field was stored in BST format but DB time zone is in GMT format so can any one help me to find a solution for 1 hr difference, here i don't have Privileges to alter DB time zone and i couldn't use function as i have so many SQL's and  can't apply that function manually. SO is there any other option to change the DB time zone with out alter it and with out using function.
    Thank you Very Much.

    Hi,
    you need to set time zone in your session, let's do an example :
    alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS';
    CREATE TABLE USERA.T
      SDATE       DATE                              DEFAULT sysdate,
      WITHOUT_TZ  TIMESTAMP(6)                      DEFAULT sysdate,
      WITH_TZ     TIMESTAMP(6) WITH TIME ZONE       DEFAULT sysdate,
      WITH_LZ     TIMESTAMP(6) WITH LOCAL TIME ZONE DEFAULT sysdate
    insert into USERA.T(sdate) values(sysdate);
      commit;
      select * from USERA.T;
    SQL> select * from system.t;
    SDATE
    WITHOUT_TZ
    WITH_TZ
    WITH_LZ
    26/09/2013 11:04:23
    2013-09-26-11.04.23.000000
    26/09/13 11:04:23,000000 +00:00
    2013-09-26-11.04.23.000000
    SQL> alter session set TIME_ZONE ='-7:0';
    Session altered.
    SQL> select * from system.t;
    SDATE
    WITHOUT_TZ
    WITH_TZ
    WITH_LZ
    26/09/2013 11:04:23
    2013-09-26-11.04.23.000000
    26/09/13 11:04:23,000000 +00:00
    2013-09-26-04.04.23.000000

  • Automatic time zone conversion in web dynpro

    We have a WDA running on top of a SAP system that is running on US time. The data from the WDA must be stored in SAP using US time. The WDA will however run in England and needs to display English time to the users. Is there any mechanism or concept in web dynpro that provides automatic time conversion when reading from and displaying time and when writing data back to the database? Some kind of  screen exit or other?
    I am not asking how to convert the value of a single field from one time zone to another, I am hoping for some general solution to the problem of time zones in web dynpro.
    Thanks!

    I don't really have anything useful to say, but couldn't help to add my two cents here...
    Whenever you work in a system that supports users or other parties spread among different time zones you start wishing for some better time zone support. It's not just the user's time zone that is relevant, just imagine for example a service call to a call center in India, where probably the customer's time zone is even more important than the user time zone.
    I know that in principle we have some design issue here, because standalone dates (without any time details) are impossible to convert among different time zones. It would be nice though if the system would provide a framework where any date/time fields can be registered and linked to some time zone field. Changing the time zone field, would automatically update all registered date/time fields.
    Ideally the field for choosing time zones would have the ability to show a list of preferred time zones with (changeable) explanations. One could for example imagine that by default it's populated with the two entries for user time zone and system time zone. Each application should be able to register additional time zones, e.g. sold-to time zone for an order, etc.
    Another (workaround) option I used in applications (for automatically filled read-only fields, like creation date/time) is to settle on one reasonable default time zone (e.g. user) and then have tool tips showing dates/times in other relevant time zones.
    Anyhow, lots of half-baked gibberish, essentially I just wanted to say that it would be nice to have some better time zone support, so I'm voting for that as well (good point Chris). And ideally this would not be limited to web dynpro. I'm sure some smart person should be able to come up with something nice...
    Cheers, harald

  • Time Zone and WLS6SP1 and date time problem

    Hi,
    We are having our development WebLogic server on a Solaris 2.8 machine. The time
    zone of that machine is GMT+5
    How ever when we start weblogic in the telnet console, we see this
    LD_LIBRARY_PATH=.......
    <Jul 5, 2001 1:19:46 AM GMT-05:00> <Info> <Security> <Getting boot password from
    user.>
    Enter password to boot WebLogic server:
    It shows the time as GMT-5.
    All our application client machines are at GMT+5.30.So when we update from our
    application, the datetime fields go as one day lesser(we have our own serializable
    component which does the updating). If i enter Dec 10 2000 in our applet client
    and try updating, it goes as Dec 9 2000 into the database.
    We tried on a NT machine which had GMT+5.30 as the time zone and it showed GMT+5.30
    while starting weblogic. And the dates are updated properly.
    Does WLS on Solaris take the timezone,etc from some other place?
    Is there any workaround for this?
    Thanks in Advance,
    Ramkumar

    We had the same thing using ReflectionX to connect. Users connection with Telnet
    caused weblogic to log with the default timezone ( which included the effects of
    daylight savings time ), while those users who connected with Rexec caused weblogic
    to use GMT in its logging. This was with weblogic 6.0 sp2
    "Joe" <[email protected].spam.com> wrote:
    >
    How are you starting up your server? We had a similar situation at our
    site, and
    it was due to the fact that we were using exceed to log into our sun box.
    Exceed
    was grabbing the users timezone info off of his/her local windows box.
    is this what is happening for you?
    "Ramkumar" <[email protected]> wrote:
    Hi,
    We are having our development WebLogic server on a Solaris 2.8 machine.
    The time
    zone of that machine is GMT+5
    How ever when we start weblogic in the telnet console, we see this
    LD_LIBRARY_PATH=.......
    <Jul 5, 2001 1:19:46 AM GMT-05:00> <Info> <Security> <Getting boot password
    from
    user.>
    Enter password to boot WebLogic server:
    It shows the time as GMT-5.
    All our application client machines are at GMT+5.30.So when we update
    from our
    application, the datetime fields go as one day lesser(we have our own
    serializable
    component which does the updating). If i enter Dec 10 2000 in our applet
    client
    and try updating, it goes as Dec 9 2000 into the database.
    We tried on a NT machine which had GMT+5.30 as the time zone and it
    showed GMT+5.30
    while starting weblogic. And the dates are updated properly.
    Does WLS on Solaris take the timezone,etc from some other place?
    Is there any workaround for this?
    Thanks in Advance,
    Ramkumar

  • Time Zone Problem with the Data

    Post Author: sde
    CA Forum: WebIntelligence Reporting
    We are working on Remedy System. It basically stores all the data for different parts of the world into the database. While storing the date and time information it automatically converts it into PST( Pacific Standar Time ). But the reports to be made should be available to all the users from different time zones and they should see the date and time data as per their time zone. So do you have any idea about how can I convert data available from the database(PST) into the time-zone(will be varying) specific to the user? Is there any feature in WebI which will support this? I have tried with the preference-timezone option but that is not changing the data. Please reply if anyone has any idea.

    Something in your installation has gone awry. It indicates that some program in your PATH is yet using Java 1.3 (maybe you have some java.exe in c:\windows that is using Java 1.3)

  • Changing Time Zones-Muse Thinks Assets' Data has Changed

    I moved to Hawaii this week. Yay!
    Changed the Time Zone in Apple's System Preferences. Opened a Muse project. Muse thinks the Assets' data has changed and wants to update all the linked files! I assume that it will then want to re-upload everything when published.
    Changed the location back to my original place, and Muse thinks everything is fine.
    Adobe InDesign does not have this problem. Neither does Illustrator. Those report links in their files are fine. So, maybe Muse should check System Preferences > Date and Time > Time Zone before saying that an asset has been modified.

    This is a bug in iOS5 (don't think it happened in iOS4).
    It's now Sunday am, and instead of Cupertino, my IOS5 iPhone now thinks I am in Denver.  Apparently, Apple puts the iPhone not into an AZ timezone that doesn't change to DST, but the time zone the phone is currently "in synch" with - CA in the summer, CO in the Winter.
    That is fine for current apponintments, and it also does explain while half my appointments in the weeks coming were wrong (off by an hour) until this morning.  After all, I didn't stay in Phoenix and the time didn't change, I moved from California to Colorado to keep the same time, so some appointments shifted by an hour.
    Let's hope Apple fixes this in time for us in Phoenix not to go back on DST - otherwise, appointments past the time change may or may not be right until all of Phoenix moves from Denver back to Cupertino again!

  • Function module for Time zone conversion.

    Hi SDN,
    Can any one tell is there any FM for conversion of time from GMT to CET or any other time zone
    Regards,
    Rahul

    Try these function modules
    STU3_ALERTS_CONV_LOCAL_2_UTC   Converts local time to a given timezone
    STU3_ALERTS_CONV_UTC_2_LOCAL   Converts local time to a given timezone
    TZ_LOCATION_TIMEZONE                     Time zones: Determine time zone for a location                                                                          (land, region)

  • Time Zone for a particular date/time and location

    Hi,
    Consider this:
    You have some date stored somewhere (e.g. in a database), and it is stored in UTC. Now, you want to display that date in the local time at that particular time, e.g. with or without daylight savings depending on the time of year.
    A more concrete example:
    In Perth, Australia, daylight savings goes from Dec to Feb inclusive (approx).
    Now, you have two dates, say 2007-01-01T12:00:00+0000 and 2007-05-01T12:00:00+0000.
    You would like to display these dates as:
    2007-01-01T21:00:00+0900 and 2007-05-01T20:00:00+0800 respectively.
    However, given that the current timezone today (26th June) in Perth is +0800, they will be displayed as:
    2007-01-01T20:00:00+0800 and 2007-05-01T20:00:00+0800 respectively.
    Code for displaying in current timezone follows, as a starting point:
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import java.util.List;
    import java.util.TimeZone;
    public class TimeZoneTestMain
         * @param args
        public static void main(String[] args)
            // UTC timezone.
            TimeZone utcTZ = TimeZone.getTimeZone("UTC");
            // Collection of dates.
            List<Calendar> dates = new ArrayList<Calendar>();
            // Create a date/time - 10 Dec 2005 12pm UTC
            Calendar cal1 = new GregorianCalendar(2005, Calendar.DECEMBER, 10, 12, 0);
            dates.add(cal1);
            cal1.setTimeZone(utcTZ);
            // Create a date/time - 10 Dec 2006 12pm UTC
            Calendar cal2 = new GregorianCalendar(2006, Calendar.DECEMBER, 10, 12, 0);
            dates.add(cal2);
            cal2.setTimeZone(utcTZ);
            // Create a date/time - 10 Apr 2007 12pm UTC
            Calendar cal3 = new GregorianCalendar(2007, Calendar.APRIL, 10, 12, 0);
            dates.add(cal3);
            cal3.setTimeZone(utcTZ);
            displayDates(dates);
        private static void displayDates(List<Calendar> dates)
            DateFormat utcDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
            utcDF.setTimeZone(TimeZone.getTimeZone("UTC"));
            DateFormat waDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
            waDF.setTimeZone(TimeZone.getTimeZone("Australia/Perth"));
            for (Calendar cal : dates)
                Date date = cal.getTime();
                System.out.println("UTC date: " + utcDF.format(date)
                                   + ", WA date: " + waDF.format(date));
    }Output is:
    UTC date: 2005-12-10T12:00:00+0000, WA date: 2005-12-10T20:00:00+0800
    UTC date: 2006-12-10T12:00:00+0000, WA date: 2006-12-10T20:00:00+0800
    UTC date: 2007-04-10T12:00:00+0000, WA date: 2007-04-10T20:00:00+0800
    I would like the output to be (daylight savings only came in for WA in 2006):
    UTC date: 2005-12-10T12:00:00+0000, WA date: 2005-12-10T20:00:00+0800
    UTC date: 2006-12-10T12:00:00+0000, WA date: 2006-12-10T21:00:00+0900
    UTC date: 2007-04-10T12:00:00+0000, WA date: 2007-04-10T20:00:00+0800
    Cheers

    >
    might be problem with jdk version which you are
    using!!!
    Mine is jdk 5You are right - just tried with 1.6.0_01-b06 and all is good.
    For some reason it didn't occur to me that the other version of the JVM I was using wouldn't have the daylight savings rule, which would make sense since it was released before the daylight saving legislation was introduced by the WA state government!

  • TimeStamp with time zone vs java Date

    In the developer's preview release notes, I read about the extended support on Oracle TimeStamp. We are currently planning to migrate current TIMESTAMP columns to TIMESTAMP WITH TIMEZONE to keep the user time zone with the typed date. Here is my question: Which time zone is persisted using a direct to field mapping between a java.util.Date and a TIMESTAMPTZ column? As the java.util.Date contains no time zone (in opposition to java.util.Calendar), does TopLink uses the JVM time zone? WHat is the best to data structure to keep date/time & time zone in our entities? Thanks, Yannick.

    I believe it would be the local timezone of the session. If you map a Date to the TIMESTAMP TZ then the SQL written out will not include a TZ value.
    Typically if you wish to map to a TIMESTAMPTZ field you would want to use an object in the model that can hold both the Timestamp and TZ values. This is most commonly a Calendar.
    Doug

  • Get date from Oracle when local time zone is different from Oracle time zon

    Hi!
    Local machine time zone= +2
    Oracle time zone= +1
    I set date to Oracle using java.sql.Date.
    From application I save date at 00:30 clock and send e.g. 28.06.2002, but in Oracle date is save as 27.06.2002 01:00 (hour=01 , I suppose that is because java.sql.Date hasn't time the Oracle set it time = time zone=+1) And when I get date from Oracle I get incorrect date. In SQL I don't use date masks. Maybe solution is to use java.sql.Timestamp object (when save date to Oracle) instead of java.sql.Date?
    But if I save date at e.g. 01:00 clock and send e.g. 28:06.2002 in Oracle, date is save as 28.06.2002 01:00 and when I read from Oracle I get correct date.
    Thank you.

    Hi!
    Local machine time zone= +2
    Oracle time zone= +1
    I set date to Oracle using java.sql.Date.
    From application I save date at 00:30 clock and send
    e.g. 28.06.2002, but in Oracle date is save as
    27.06.2002 01:00 (hour=01 , I suppose that is because
    java.sql.Date hasn't time the Oracle set it time =
    time zone=+1) Presumably you are using setTimestamp() to store the value. If you are explicitly using a varchar (string) then you will have to correct the timezone your self.
    And when I get date from Oracle I get
    incorrect date. In SQL I don't use date masks. Maybe
    solution is to use java.sql.Timestamp object (when
    save date to Oracle) instead of java.sql.Date?The method setDate/getDate store a 'date' which is not the same as a 'date and time' for which setTimestamp/getTimestamp are used.
    But if I save date at e.g. 01:00 clock and send e.g.
    28:06.2002 in Oracle, date is save as 28.06.2002
    01:00 and when I read from Oracle I get correct date.
    Thank you.

  • Partitioning on a table on the field TIMESTAMP WITH TIME ZONE

    Hi I have a very large size table which has grown to a size that we are not able to query it efficiently. We have decided to partition the table. But the issue is the table has a TIMESTAMP WITH TIME ZONE field and not DATE. I have found some links on the web which state this might cause an error. I am planning to create a temp table with the partition rules and at the same time copy data from the original one.
    using CREATE TABLE XYZ PARTITION BY RANGE (ABC) ( ---- Partition rules ------) NOLOGGING AS SELECT * FROM XYZ_ACTUAL where 1 = 2;
    Then if it works fine, I would rename the table with partitions to the actual name.
    Should all this be fine?
    The database is very critical. Hence the dilemma.

    Have you tried converting the timestamp with time zone to a character string as a partition key, possibly using an edit mask to control the timestamp components used?
    Your plan sounds OK to me - if you can get the partitioned table created - but I would test in a development first o see where the lLw of Unintended Consequences might decide to manifest itself.
    Edited by: riedelme on Dec 8, 2009 9:13 AM

  • Time Zone...When changing date and time.

    After having updated to version 10.6.1, I am still experiencing the same top sites glitch as everyone else. However, is anyone else's time zone graphics funky (missing squares?) and really unresponsive when moving across the earth from side to side?

    For me - I am pretty anal about keeping my camera's time accurate, and I always adjust time on import to the correct time zone if I am shooting in a different area (I live in AZ time, and when I shoot on the east coast i set the time zone to eastern on import). So I doubt I would ever use that feature.
    If you ever do need this feature, be aware that the date and time displayed in the Adjust Date and Time dialogue box are the date and time in the time zone your computer is set to, not the time zone the picture was taken in.
    So if you have a picture taken on the east coast and you open the adjust date/time dialogue, you will see the time for the picture in AZ time (a few hours earlier than the time displayed in the Image Date field). To set the time for the picture, you have to figure out what time it was in AZ when the picture was taken, and enter that time.
    After playing around with this I've filed it as a bug with Apple. Even if they aren't going to let you change the time zone (functionality I think is needed), they should at least consistently use the same time zone with a picture, rather than forcing you to do time zone conversions by hand.

  • [Forum FAQ] How to convert data of date time's type stored in database to display Time Zone based on different territories?

    Introduction:
    There is a date’s type field in the database. When using the field in the report, clients want to convert the field’s values based on own Time Zone to show the date field.
    Workaround:
    Currently, Reporting Services doesn’t provide the function that can get the Time Zone of a client machine. To work around the issue, you need to add a custom code in the report to convert Time Zone and create a parameter through which the client users can
    select his/her Time Zone, and then pass the parameter value to the custom function. Please see the details as follows:
    1. Click the Report, select Report Properties and add the custom code as the screenshot shown:
    Custom code:
    Shared Function FromUTC (ByVal d As Date, ByVal tz As String) As Date
    Return (TimeZoneInfo.ConvertTimeBySystemTimeZoneId(d, TimeZoneInfo.Utc.Id, tz))
    End Function
    2. Create a parameter named TimeZone (you can name the parameter according to your requirement), select Available value and click Specify values.
    Label                                                               
    Value
    China Standard Time                                        
    China Standard Time
    Central European Time Zone                              Central European Time Zone
    India Time Zone                                               
    India Time Zone
    United States of America Time zones                   United States of America Time zones
    3. Call the custom code and type the expression to convert the Time Zone as follows:
    =Code.FromUTC(Fields!UTCDateFromDatabase.Value,Parameters!TimeZone.Value)
    Note: If you use the expression “=Code.FromUTC(Fields!UTCDateFromDatabase.Value,TimeZone.CurrentTimeZone.StandardName)”, it cannot achieve the goal because TimeZone.CurrentTimeZone.StandardName gets the TimeZone of Report Server side rather than Client side.
    More information:
    TimeZone Class
    http://msdn.microsoft.com/en-us/library/system.timezone(v=vs.110).aspx
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012

    Hello,
    Please read the answer provided by Kalman on the following thread:
    http://social.technet.microsoft.com/Forums/es-ES/446df85a-7ad8-4891-8748-478a26350c5c/how-to-compare-tables-in-two-different-servers-while-one-of-the-server-name-has-a-?forum=transactsql
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • IPhone Date & Time keeps changing to "Cupertino"  time zone

    Hi
    Every time i change my Time Zone in Settings>General>Date & Time to "London,United Kingdom" it correctly changes to "London" but if i exit Settings and navigate back to Time Zone settings it has changed to "Cupertino".
    This effects World Clocks and other apps which is most annoying.
    I have firmware 2.0(5A345) installed on the iPhone. Is there a way to upgrade this? Will i lose all my current data if i do a firmware upgrade? Will it even fix the issue?
    Please help, there are currently 2 options I have. Find a fix or move to Cupertino so that my iPhone displays the correct time.
    Is there a less drastic option?
    Thanks in advance!

    If i do that it states that i am running the current version. Maybe because it is a revision and not a proper update.
    My twin brother also has the the version that you have (54347).
    Apparently it updates the firmware when you do a "Restore" through itunes but that will wipe the phone clean of everything. I don't mind doing this as long as i can transfer my backed-up content but if i do a "Restore from backup" to tranfer all my settings etc i have a feeling it will revert it back to the firmware that the iphone was running when it was backed up. Hope that makes sense!
    Thanks

Maybe you are looking for

  • Why can I not update apps on my I pad

    Why can I not update my apps on my I pad

  • Can we rename the Apply button to RUN or GO in BI Publisher 11g?

    Hi , We have a requirement to rename the Apply button to RUN or GO. ( after selecting the parameters , we have to click the Apply button) Can this be achieved? Thanks Ashish

  • Why is the symbol of a broken photo the result when resizing with pse9?

    I have been able to resize photos for email in the past, but now it just does not work for me.I go to edit, resize, image size, then reduce width from 10 (approx) to 3, save with a new name, close, click on organizer,  and this broken photo image com

  • Movie dimensions, blog vs podcast?

    I want to create of video podcasts series. I create a podcast, drop a 16x9 movie on the entry page. It's 16x9. I change to the podcast (list) page and it's square. Can't fix it because you can't edit this page, only the enty page which is the right s

  • No Resulting DCs for Deployment

    Dear SDN, I am developing a web dynpro DC which has a reference to the Public DC (Jar DC). An activity for this public DC has been created, build. It is then checked in, activated and released. The activation log didnt show any error When the activit