<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Function module for converting German Data/Time to Indian Date/Time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-german-data-time-to-indian-date-time/m-p/1571352#M257909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;hi,

 first get the timezone of that country

CALL FUNCTION 'TZON_LOCATION_TIMEZONE'
      EXPORTING
        if_country        = p_it_userid-zcountry
      IMPORTING
        ef_timezone       = l_tzone
      EXCEPTIONS
        no_timezone_found = 1
        OTHERS            = 2.

then use the below statements

-- Convert from server time to GMT
      CLEAR l_tstmp.
      CONVERT DATE l_datum
              TIME l_ctime
         INTO TIME STAMP l_tstmp TIME ZONE sy-zonlo.

*-- Convert from GMT to user backup time
      CONVERT TIME STAMP l_tstmp TIME ZONE it_usr_timezone-ztzone
        INTO DATE it_usr_timezone-zdate
             TIME it_usr_timezone-ztime.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2006 10:24:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-13T10:24:13Z</dc:date>
    <item>
      <title>Function module for converting German Data/Time to Indian Date/Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-german-data-time-to-indian-date-time/m-p/1571351#M257908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;My requirement is to convert German date and time to Indian date and time. Is there any function module available or any way we can get it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Atanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-german-data-time-to-indian-date-time/m-p/1571351#M257908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T10:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for converting German Data/Time to Indian Date/Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-german-data-time-to-indian-date-time/m-p/1571352#M257909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;hi,

 first get the timezone of that country

CALL FUNCTION 'TZON_LOCATION_TIMEZONE'
      EXPORTING
        if_country        = p_it_userid-zcountry
      IMPORTING
        ef_timezone       = l_tzone
      EXCEPTIONS
        no_timezone_found = 1
        OTHERS            = 2.

then use the below statements

-- Convert from server time to GMT
      CLEAR l_tstmp.
      CONVERT DATE l_datum
              TIME l_ctime
         INTO TIME STAMP l_tstmp TIME ZONE sy-zonlo.

*-- Convert from GMT to user backup time
      CONVERT TIME STAMP l_tstmp TIME ZONE it_usr_timezone-ztzone
        INTO DATE it_usr_timezone-zdate
             TIME it_usr_timezone-ztime.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-german-data-time-to-indian-date-time/m-p/1571352#M257909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T10:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for converting German Data/Time to Indian Date/Time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-german-data-time-to-indian-date-time/m-p/1571353#M257910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use CONVERT TIME STAMP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT TIME STAMP tst TIME ZONE tz INTO DATE d TIME t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT DATE d TIME t INTO TIME STAMP tst TIME ZONE tz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-converting-german-data-time-to-indian-date-time/m-p/1571353#M257910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T10:25:29Z</dc:date>
    </item>
  </channel>
</rss>

