Change time format to 24 hours

Dear Experts,
In  my webdynpro application I have a requirement where I have to use a 24 hr time format, but by default it is shown as 12 hr format, because of the language in portal.
And I only want to change the format in this application only, not of all the portal.
Please suggest.
Warm Regards,
Upendra Agrawal

Hi Upendra,
Assign the value from backend to the newly created attribute of type new simple type. This will convert it to the 24 hrs format
OR
if you get the date from backend,
Try using a date formatter.
  String s;
  Format formatter;
  Date date = // Your date value from the backend.
  formatter = new SimpleDateFormat("HH.mm.ss");
  s = formatter.format(date);
This will give the time in 24 hrs in the variable 's'.
Pls try this and let me know.
Thanks and Regards,
Shyam.
Edited by: Shyam Gopal on Jul 28, 2010 3:05 PM

Similar Messages

  • How to convert 12 hour time format to 24 hour time format ?

    Hi,
    How to convert 12 hour time format to 24 hour time format is there any FM if not, please suggest me how to convert .
    regards,
    rakesh

    Hi,
    Have you tried function module HRVE_CONVERT_TIME
    Input parameters will be like
    TYPE_TIME                       B
    INPUT_TIME                      01:00:00
    INPUT_AM_PM                  PM
    Output
    OUTPUT_TIME                     13:00:00
    Regards

  • TA26756 Ho do i change Time format in Logs ?

    Hi,
    I need to change Time format as GMT in Darwin Streaming server logs.
    Kindly suggest me how do i achieve ?
    Warm Regards,
    Jaymin Thakkar.

    Pithan, Leena, Thyagarajan,
    Thanks for your cooperation and KT.
    The problem is resolved.
    STEPS INVOLVED
    Problem: Refurbishment order was created mentioning quantity as 4 and was also released. After entering the value the user came to know that he has to enter quantity as 3. When we went in change mode the field was greyed out and the stock was sitting in "On Order Stock".( Through MMBE). Goods Issue was not carried out, since we found error on hand before. I approached SDN after checking various methods.
    Solution:
    1. Removed the serial no assignment for the material
    2. Carried out technical completion.
    3. Carried out Business completion and saved the document.
    Later on executing MMBE the stock moved from the "On Order Stock" to "Unrestricted Stock".
    Thanks
    Regards
    Sathya

  • Change time format to decimal

    Hello Friends,
    I am working on a report where I am showing hours and munites based on difference between date and time.
    My o/p is: 1211:23  (hours:minutes) and the type is 'TVRO-FAHZTD'
    My requirement is how to change '1211:23' TO '1211.2'.
    Please help me.
    Thanks,
    Shreekant

    copy the value in a variable of the following type.
    data dec_one type p decimals 1.....do this if you have a decimal and not a ":"
    otherwise, another option is to convert it to a string...split it on ':' (colon) and then use the first offset position of the second variable.
    example.
    data : str type string, str1 type string, str2 type string.
    str = '123:23'.
    split str at ':' into str1 str2.
    clear str.
    concatenate str1 '.' str2(1) into str.
    Edited by: Priyank Jain on Aug 20, 2008 1:21 AM

  • Change Time Server Unix (retard hours)

    hello
    Greetings all, thanks for the help they can give me.
    I have a unix server with an Oracle database, the situation is as follows:
    the server is 30 minutes in advance, the idea is to place the exact time delay is 30 minutes, the question is: What is the procedure I should follow?
    thk'u

    I still don't get what you are saying, but if you are asking where the server gets its timezone, it's from the environment where you start the server. So you generally need to set the TZ variable. If you don't, the default can vary, and be very confusing. I saw one place that started up under the c shell, and the default for that os and that shell was CST, while everything else was PST, and no one could figure out why some things were off, depending on whether the db started automatically or manually. You can also set it with the create database statement. See your docs for zoneinfo and the globalization guide for customizing time zone data.
    I forget which, but some versions of the db (certainly 10gr2) and EM and java have various issues with time zone and daylight savings time.
    See also http://groups.google.com/group/comp.databases.oracle.misc/browse_thread/thread/ae67e7bef06b953b/984d42bc2c251f9

  • Update 2.0 disable time format 24h

    After this update I cannot change the format of the hour to 12 someone knows solution exists for this?
    Thanks

    Strong Badinater wrote:
    If you go to Settings>General>Date & Time, there's a "24-Hour Time" Option, if it is "off" it'll add the "AM/PM" with the time. If it is "on", which is what you want, it'll show you the time in the 24-hour sort of way. i.e 9PM=21:00
    Hi,
    Bizzarrely, this feature is disabled in certain "Region Fortmats" e.g "United Kingdom"
    Settings > General > International > Region Format
    Have no idea why.
    Dud.

  • UCCX changing time variables from AM to PM and vice-versa

    Hi all.
    I have an extremely irritating issue that I'm hoping someone can shed some light on.
    I'm currently making improvements to one of our contact centre scripts. We require to activate redirection on the fly quite often, and in the past I used a modified script with different time of day tests.Going forward I wanted to provide the ability for this to be activated and times set through the GUI.
    So I made some variables as parameters, of note these are RedirectOperation (boolean), RedirectFrom (Time) and RedirectUntil(Time).
    The flow is that if RedirectOperation is true, a time test is performed to dictate when we redirect - this is in the form of:
    (T[now] >= RedirectFrom) && (T[now] <= RedirectUntil)
    Now I know I can use T[now].before(xxx) etc but the operation itself isn't the issue, it does work perfectly fine this way, but the times change from AM <<>> PM under certain conditions.
    To explain:
    I set the default (on the script itself) RedirectFrom to "T[6:00:00 PM]" and RedirectUntil to "T[11:59:59 PM]".
    When debugging the script, I can see that the system changes the times from PM to AM (under the variable list on CCX editor during a reactive debug) ! That's if I've not selected these parameters on the GUI. If however, I do select the parameters and still use the default values, when debugging, they stay as PM!!
    This is surely a bug??
    To try something else, I changed my time format to 24 hour clock - so 18:00:00 and 23:59:59 respectively. I can set these on the script itself, and if the parameters are unchecked and left at default, it works fine. However when I select the parameter and try to change the times to (for example) 19:00:00 and 22:59:59, the GUI spits an error saying:"* Please enter a valid date for the Date configurable variable." I can only assume there is a mismatch between what you're allowed to put into the script and what the GUI thinks you're allowed to.
    But certainly the script surely should not be changing between AM and PM when a variable is left to default??
    Any ideas would be greatly appreciated!
    Thanks in advance.
    Scotty

    After choosing your start time you should be able to click to the right to change from AM to PM or vice versa by using the up/down button.  I just did it.
    If your DVR is not cooperating, try rebooting it.

  • Change time from number format(ie. 3.50 hours) to regular time format( ie.3:30)

    How do you Change time from number format(ie. 3.50 hours) to regular time format( ie.3:30)

    I performed the following function in order to get my report to view the information the way that I wanted to see it:
    put this formula across from the caption âu20ACu0153Display Stringâu20AC within the âu20ACu0153Format Fieldâu20AC window for description.Â
    whileprintingrecords;
    MonthName(tonumber(Mid({CartonHistory.DateTimeStamp},5,2)),true) & Mid({CartonHistory.DateTimeStamp},7,2) & ", " & Mid({CartonHistory.DateTimeStamp},1,4)Â & " " & Mid({CartonHistory.DateTimeStamp},9,2) & ":" & Mid({CartonHistory.DateTimeStamp},11,2) & "." & Mid({CartonHistory.DateTimeStamp},13,2)
    It converts dates from: 20061212102311xx to: Dec12, 2006 10:23.11.

  • Can I change the time format of incoming mails, in Mail? Now I have AM/PM, but I live in Denmark where we don't use that format. We have a 24-hour clock format i.e. 14:52 instead of 2:52 PM.

    Can I change the time format of incoming mails, in Mail? Now I have AM/PM, but I live in Denmark where we don't use that format. We have a 24-hour clock format i.e. 14:52 instead of 2:52 PM.

    Is the time format of your Mac in 24 hour?

  • CONTACT NAMES NOT DISPLAYING & TIME FORMAT CHANGING AFTER SYNC

    i live in kuwait and i was just gifted an officially unlocked 3g iphone from new zealand. i upgraded to 2.1. i have 2 problems
    1. i have synced my contacts from address book. the format that it is stored in is +965XXXXXX. 965 is the country code for kuwait and all numbers in kuwait are of 7 digits. there is no area code as this is a small country. when someone calls me their name does not appear. only the number appears
    2. i have set the time format on the iphone to the 24 hour format but every time i sync with my macbook the time format changes to 12 hour format.

    Follow this procedure to get your contacts back (I assume they are on your Mac/PC):
    1. Go to Settings, then Mail, Contacts, Calendars
    2. Select your account which has the contacts you wish to sync
    3. Turn syncing for Contacts to "Off". This will bring up a box telling you your iPhone is turning off Contacts. My iPhone actually hung at this stage, so after several minutes, I performed a hard restart (holding down Home and power buttons for 5 sec.)
    4. Exit from Settings
    5. Go to Settings, then Mail, Contacts, Calendars
    6. Select your account which has the contacts you wish to sync
    7. Turn syncing for Contacts to "On". This should restore your contacts
    8. Go to Contacts to verify. They initially may not appear or just show up as numbers for a second or two, but then your contacts should appear.

  • Changing date/time format

    Hi there,
    I live in the United States but prefer my dates to be in the dd/mm/yy format as opposed to the US mm/dd/yy format. I also like 24-hour time rather than AM/PM. I System Preferences>Language & Text>Region, I found the tool to modify my preferred date/time formats. However, I notice that the format of the date in my menu bar does not change (it still reads Sep 25 when it should read 26 Sep). All other dates/times appear to function correctly. I briefly switched the Region of the computer to the United Kingdom but quickly switched it back because of how autocorrect handled words like "color."
    Ideas?

    That did the trick - sometimes the easiest thing to do is hard to see. Seems I have been working too long on a Windows machine (unfortunately, I have to do so at work)...
    Thanks for the quick help!

  • How do you change between 12 and 24 hour format on ipad

    how do you change between 12 and 24 hour format on ipad

    Check: Settings - General - Date &amp; Time - 24-Hour time = On/Off

  • Why did the playlist time format change in iTunes 10.6? Can I get the old format back?

    My iTunes playlists used to give a precise total play time. Now that I downloaded the new version of iTunes, the playlist just estimates the time. So, "1 hour" could mean 1 hour and 2 or 3 or 4 minutes. That is a big problem for people who teach 60-minute fitness classes! I plan my class around that playlist, and 3 or 4 minutes is a big deal. Now I am having to add up the time of songs by hand. What a pain!  Is there any way to get back the old format of time, which estimated exactly "59 minutes" or I think it was more precise, like "00:59:12."  I need this format back.  The estimate of "1.1 hours" is killing me.

    Hello. When I go to "About iTunes," it says "10" but then "10.6 (40)" underneath, in fine print.
    Actually, "40.3" minutes is different from the previous format.  It used to give the time in hh:mm:ss. This is an image of my problem:
    Now that the time is given in decimals, there are some minutes unaccounted for. I have a playlist that is 58 minutes (I added it on a calculator), but iTunes tells me it's 1 hour. I know it doesn't seem like a big deal but it matters when you have a 60 minute class and you are guided by your playlist.

  • Why doesn't siri know how to change the time of a reminder? When asked, "Do you want to confirm or cancel your reminder?" Reply, "Can I change the time to a half hour later?" Siri doesn't know how to respond.

    Why doesn't siri know how to change the time of a reminder? When asked, "Do you want to confirm or cancel your reminder?" Reply, "Can I change the time to a half hour later?" Siri doesn't know how to respond.

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • When double to digital indicator set to display in time format... Value changes.

    Dear all,
    I am having trouble displaying the value I want. I have a double value say 320 sent to a digital indicator where I have edited the properites of it to display in a time format containing only minutes and seconds like so, '3:20'. Unfortunately it'll take the value and change it to a another value and display that. I do not know what the issue is. If anyone knows the solution... PLEASE post!
    There is an image attatched! 
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    img.JPG ‏24 KB

    I only believe so due to the fact that when I convert a value from time stamp to double such as 3:20 it gave me 320. So I thought that the reverse might be try. Should I just input the total amount of seconds and that will output the Minuteseconds that I want?
    Thanks for quick reply.

Maybe you are looking for

  • HMI using multiple VI´s

    Hi. I'm beggining to use Labview as HMI, but I don't know exactly how to do it. I'd like to build about 4 screens to navigate. I've read that I could use tab control, but when I tried, only the chosen tab was working properly - the others lost data.

  • Error when Extending VO

    Hi, I am exending an iExpenses VO and am getting this error: "Each row in the query result columns must be maped to a unique query attribute in the mapped entity columns" I am trying to add 2 columns to the SQL query and get this error on the Attribu

  • Number Format Mask error

    If i am providing format mask is 9 and providing value as 5, then i am getting output as " 5", means a white space padded just before the output. so can any body inform me is this a forms 6i bug, or the output is something like this only. A white spa

  • CcBPM Correlation based on filename

    I am new to ccBPM.  The problem I am trying to solve is we have 2 files written; 1 in XML with an element containing the name of the 2nd file and a 2nd file that is a PDF document.  We can get to these files via the File Adapter (NFS).  But we must p

  • How to print different  header & item data in new pages using smart forms.

    Hi, In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input. I want to print all the different header data with their item data in new pages using smart forms. Can any one please he