This discussion is archived
7 Replies Latest reply: Aug 25, 2010 8:49 AM by 746458 RSS

How to change time format to 24 hour

754555 Newbie
Currently Being Moderated
How to set the time format to 24 hours format?
  • 1. Re: How to change time format to 24 hour
    malky Explorer
    Currently Being Moderated
    Try this:

    1. Start ==> Programs ==> Oracle Content Server ==> idc ==> Utilities ==> System Properties, click Localization tab, click English-US (or whatever your default locale is), click Edit..., edit Date/Time Format entry, you can format there your time to 24 hours if you use the appropriate formatting.

    The normal convention for 24h is: HH:mm:ss, change HH to hh for 12h.

    Regards,
  • 2. Re: How to change time format to 24 hour
    754555 Newbie
    Currently Being Moderated
    Is there any other ways, i tried this but doest work...

    Thx.
  • 3. Re: How to change time format to 24 hour
    malky Explorer
    Currently Being Moderated
    Not that I know of, maybe someone else has another idea.
    Are you sure you're changing it in the right locale and being careful with the formatting?
  • 4. Re: How to change time format to 24 hour
    746458 Expert
    Currently Being Moderated
    When you say you want this changed...

    What exactly do you mean where do you want to see the time in 24hr format?

    You would do well to read about SystemTimeZone SystemLocale SystemDateFormat and formatDateWithPattern in the Idoc script reference http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/developer/idoc_script_reference_10en.pdf

    Tim

    Edited by: Tim Snell on 24-Aug-2010 10:26
  • 5. Re: How to change time format to 24 hour
    webmonkeymagic Journeyer
    Currently Being Moderated
    I talk about timezones and date formats in my blog:
    http://webmonkeymagic.blogspot.com/2010/02/comparing-dates-and-time-zones.html
  • 6. Re: How to change time format to 24 hour
    754555 Newbie
    Currently Being Moderated
    Thanks for helping, actually i also have one more question about the calendar, when selecting the date from the calendar, how can i define the time as current time but not 00:00?

    Thanks again.
  • 7. Re: How to change time format to 24 hour
    746458 Expert
    Currently Being Moderated
    The IDOC script fucntion dateCurrent will give you the full date and time 'now' and you can show this in the time only format like this <$formatTimeOnly(dateCurrent())$>

    In terms of setting this for dates selected by calendar...

    You can either do it server side by setting up a derived rule where you could change the time after checkin to 'now' using the above

    Or you could look at customizing the PopUpCalendar resources. In this case you would need to modify the resource so that when the page was rendered the time part was stored and that on selection of a data from the calendar the time is cocatenated on the end. You would need to do this in a component of course.

    The second solution is more work but would look more elegant

    Tim

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points