Skip to Content
author's profile photo Former Member
Former Member

Problem in JAVA date and time formate

Hi All

In Bapi i have one parameter i.e.,Login,it is initialized with 00:00:00.I have binded that Login to my table in webdynpro app,it is appearing like 12:00:00AM.So,how can i change that format into 24hrs format.

exactly i want login time is like 00:00:00 while running the webdynpro application

Please help me regarding this.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2012 at 09:58 AM

    try converting your data type to gregorian

    Timestamp timestamp = new Timestamp(23423434);

    Calendar calendar = GregorianCalendar.getInstance();

    calendar.setTimeInMillis(timestamp.getTime());

    Regards

    Senon

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.