<?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>Question Re: Time Entry in Webdynpro application in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649472#M722706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to override the default toString() method of java.sql.Date. Use the following code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date date = new Date(System.currentTimeMillis())&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;   public String toString()&lt;/P&gt;&lt;P&gt;   {&lt;/P&gt;&lt;P&gt;       SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd G   HH:mm:ss");&lt;/P&gt;&lt;P&gt;       return dateFormat.format(this);&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wdContext.currentConextElement.setMyDate(date);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a much better way you can use same funtionality in caliculated attribute.&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;Abhilash gampa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Nov 2006 15:41:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-16T15:41:53Z</dc:date>
    <item>
      <title>Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaq-p/1649465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing a webdynpro application. In this I want a field to contain Date and Time values. I tried by declaring it as Date field. But I am unable to enter time into this. Is there a way to enter both Time and Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;D.NagaSurendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 05:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaq-p/1649465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T05:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649466#M722700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="256123"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Anilkumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 05:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649466#M722700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T05:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649467#M722701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get date by using the Caledar. But how to get the time? When I am making a field as DATE, I am able to select the date from the calendar icon that will be placed beside the input field. I want TIME also to be displayed along with the DATE. Please let me know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;D.NagaSurendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 06:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649467#M722701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T06:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649468#M722702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar cal = Calendar.getInstance();&lt;/P&gt;&lt;P&gt;int hour12 = cal.get(Calendar.HOUR);          &lt;/P&gt;&lt;P&gt;int hour24 = cal.get(Calendar.HOUR_OF_DAY);  &lt;/P&gt;&lt;P&gt;int min = cal.get(Calendar.MINUTE);            &lt;/P&gt;&lt;P&gt;int sec = cal.get(Calendar.SECOND);             &lt;/P&gt;&lt;P&gt;int ms = cal.get(Calendar.MILLISECOND);         &lt;/P&gt;&lt;P&gt;int ampm = cal.get(Calendar.AM_PM); &lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;wdContext.currentContextElement().setTime(hour12+":" +min +":" +sec);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Anilkumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649468#M722702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T07:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649469#M722703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Create a Simple Types with date type in the Representation tab give the Format like "dd/MM/yyyy HH:mm" and bind it to the input element .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regads&lt;/P&gt;&lt;P&gt;Mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649469#M722703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T07:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649470#M722704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reply given by mukesh is the correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anilkumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 07:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649470#M722704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T07:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649471#M722705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the field from Component Controller. I have set the field as date. But I am not able to set the format to it. Where I need to set the format. Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;D.NagaSurendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 14:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649471#M722705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T14:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649472#M722706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to override the default toString() method of java.sql.Date. Use the following code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date date = new Date(System.currentTimeMillis())&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;   public String toString()&lt;/P&gt;&lt;P&gt;   {&lt;/P&gt;&lt;P&gt;       SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd G   HH:mm:ss");&lt;/P&gt;&lt;P&gt;       return dateFormat.format(this);&lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wdContext.currentConextElement.setMyDate(date);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a much better way you can use same funtionality in caliculated attribute.&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;Abhilash gampa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 15:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649472#M722706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-16T15:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Time Entry in Webdynpro application</title>
      <link>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649473#M722707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Surender there is a class in Java as TimeStamp use it as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp frmTime =  new Timestamp(2006-1900, 10, 13, 19, 0, 0, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Date start from 0 and you have to minus 1900 from the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nidhideep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 05:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/time-entry-in-webdynpro-application/qaa-p/1649473#M722707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T05:14:32Z</dc:date>
    </item>
  </channel>
</rss>

