How to pass in URL time format like this : DD/MM/YYYY HH24:MI:SS ?

Hi,
I have items date format in the folllowing format : 'DD/MM/YYYY HH24:MI:SS'.
I want to pass them in URL but the sign':' is interpreted as an end of value by apex;
For example if the item value is '21/03/2010 10:20:43' i get this as a result '21/03/2010 10';
How top pass the tiem value in the URL wthout if possible to change the mask format ?
Thank you for your help !
Christian.

This a bit of a brute force aproach, but is worth considering as it caters for all Apex specific characters (that htf.escape_sc preserves). It's also useful when extracting text to SQL scripts that may include line feeds, quotes etc etc. RAW representation is twice the as long as the input date string, so use with caution... It also helps obfuscate the URL which helps reduce URL hacking...
SQL> select UTL_RAW.cast_to_raw('21/03/2010 10:20:43') from dual
UTL_RAW.CAST_TO_RAW('21/03/201010:20:43')
32312F30332F323031302031303A32303A3433
1 row selected.
SQL> select UTL_RAW.cast_to_varchar2('32312F30332F323031302031303A32303A3433') from dual
UTL_RAW.CAST_TO_VARCHAR2('32312F30332F323031302031303A32303A3433')
21/03/2010 10:20:43
1 row selected.
Edited by: maceyah on Mar 25, 2010 9:38 AM

Similar Messages

  • How to pass a run time value as a parameter to a webdynpro iview

    Hi,
    we have a webdynpro which we can call with passing a run time value in this form:
    https://xxx.yyy.zzz/sap/bc/webdynpro/sap/zfkq_inv_1?WI_ID=000000004332&sap-client=700&sap-language=EN&sap-wd-sapgui=X
    This link will be sent to many users but the WI_ID will change every time.
    It works fine but now we want to implement this webdynpro in our portal. The user shall get a link like this
    https://xxx.yyy.zzz/irj/portal/webdynpro-test?wi_id=000000004332. With this link he will navigate directly to the webdnypro (quicklink-function).
    The problem is that i don't know how to transfer the parameter WI_ID in the url to the webdynpro.
    It's no problem to fix the WI_ID in the application parameter properties but this is not what we want.
    Is it possible to transfer the url parameter to the application parameters of the webdynpro iview ?
    Thanks in advance.
    Best Regards
    Mirko Berscheidt

    Hi Mirko,
    The first thought I had is if your scenario makes sense at all. Because you might send out the links, but probably the iView will also be accessible via navigation, and in that case this additional parameter won't be there!?! (And if the iView is not accessible by navigation, then why going the way via the portal and not the direct way to the application like with your first link given?!).
    Anyhow, I think this should be possible by using the AppIntegrator, see The customer exit of the Application Integrator
    For an example about how to add individual values to users which you then can add to the URL see this discussion: App Integrator, and custom URL parameters using Customer Exits - this might be a possibility that each user can call the "same" iView but in fact the app integrator then would be fired with different URL parameters (per user).
    Hope it helps
    Detlev

  • 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

  • How to get the date time format in OCI

    How to get a date time format in OCI instead of only date

    You would have to use the OCIDateTime datatype for this. Refer to
    OCI documentation for more details.

  • Why cant I have the date format like this:  1/2/07, it converts to Jan 2

    Why cant I have the date format like this: 1/2/07, it converts to Jan 2, 2007
    I want to keep it like that because, I transported a huge spreadsheet from my PC, and it has like this: 1/1/07, and there is way to many, to go back and change. Please help. Thank you.

    Hello
    Welcome to the club.
    The response seems to be simple.
    Those who wrote the Help are not those who wrote the PDF User's Guide which are not those who coded the application.
    As on this forum you will met only users trying to help other users, no one would be able to tell you if what we got is a bug or a design flaw.
    Like many of us,
    *Go to "Provide Numbers Feedback" in the "Numbers" menu*, describe what you wish: a way to define the default format used as Automatic date/time.
    Then, cross your fingers, and wait for iWork'09
    Yvan KOENIG (from FRANCE mardi 15 janvier 2008 15:10:17)

  • Can I pass a table function parameter like this?

    This works. Notice I am passing the required table function parameter using the declared variable.
    DECLARE @Date DATE = '2014-02-21'
    SELECT
    h.*, i.SomeColumn
    FROM SomeTable h
    LEFT OUTER JOIN SomeTableFunction(@Date) I ON i.ID = h.ID
    WHERE h.SomeDate = @Date
    But I guess you can't do this?... because I'm getting an error saying h.SomeDate cannot be bound. Notice in this one, I am attempting to pass in the table function parameter from the SomeTable it is joined to by ID.
    DECLARE @Date DATE = '2014-02-21'
    SELECT
    h.*, i.SomeColumn
    FROM SomeTable h
    LEFT OUTER JOIN SomeTableFunction(h.SomeDate) I ON i.ID = h.ID
    WHERE h.SomeDate = @Date

    Hi
    NO you cant pass a table function parameter like this?
    As When you declare @date assign value to it and pass as a parameter it will return table which you can use for join as you did it in first code 
    But when you pass date from some other table for generating table from your funtion it doesnt have date as it is not available there
    Ref :
    http://www.codeproject.com/Articles/167399/Using-Table-Valued-Functions-in-SQL-Server
    http://technet.microsoft.com/en-us/library/aa214485(v=sql.80).aspx
    http://msdn.microsoft.com/en-us/library/ms186755.aspx
    https://www.simple-talk.com/sql/t-sql-programming/sql-server-functions-the-basics/
    http://www.sqlteam.com/article/intro-to-user-defined-functions-updated
    Mark
    as answer if you find it useful
    Shridhar J Joshi Thanks a lot

  • How do I create & edit a pattern like this in Illustrator?

    I want to know how to create and edit a pattern like this in Illustrator:
    And then be able to do this:
    (same pattern with blue square effect)
    Any advice would be appreciated.

    Read up on creating patterns. This one is just simple lines and very easy to do, but remember that the defining rectangle MUST be at the very back of the stack:
    Start off by making your pattern tile (top). Drag the drawing to the Swatches panel.
    Fill a rectangle with the pattern. Scale and rotate the pattern fill (see Scale and Rotate dialogues).
    Recolour the pattern using Edit > Edit Colors > Recolor Artwork

  • How Can I Speed Up My Video Like This? (Example Included)

    iMovie is currently optimizing my video so figured i'd ask this now rather than when i'm editing.
    I recorded video of myself getting a haircut and would like to speed the video up and add some music to it; similar to this video i found on youtube.
    How can I speed up the film like this and slow it down as done in this video?
    http://www.youtube.com/watch?v=-OmFShCpXSU

    Quite easy to do.
    Watch the tutorial here:
    http://www.apple.com/ilife/tutorials/#imovie-timing
    You can access these tutorials and ask questions from within iMovie Help.
    Regards,
    Z

  • How to change date and time format

    Hi experts,
    Can i know how to change the date and time format?
    I want the date format to be dd-mmm-yyyy  and time format to be hh:mm:ss
    These date and time is in my sapscript form.
    I make use of PERFORM function in sapscript.
    This is the code in my print program.
    FORM get_actlog_QA TABLES in_tab STRUCTURE itcsy
                           out_tab STRUCTURE itcsy.
       DATA: object TYPE string, "
            qaname LIKE JCDS-USNAM, "NAME for engineering process, QA Manager
            qadate LIKE JCDS-UDATE, "DATE changed in engineering process, QA Manager
            qatime LIKE JCDS-UTIME. "TIME changed in engineering process, QA Manager
    DATA: lt_jcds type standard table of jcds,
          wa_jcds like line of lt_jcds,
          new_date(10) type c.
      READ TABLE in_tab INDEX 1.
      MOVE in_tab-value TO object.
      select * into CORRESPONDING FIELDS OF TABLE lt_jcds
      from jcds WHERE objnr = object
        AND  ( stat = 'E0005' )
        AND inact = ''.
      Loop at lt_jcds into wa_jcds.
          qaname = wa_jcds-USNAM.
          qadate = wa_jcds-UDATE.
          qatime = wa_jcds-UTIME.
       READ TABLE out_tab INDEX 1.
       MOVE qaname TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
       READ TABLE out_tab INDEX 2.
       MOVE qadate TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
       READ TABLE out_tab INDEX 3.
       MOVE qatime TO out_tab-value.
       MODIFY out_tab INDEX sy-tabix.
      endloop.
      clear wa_jcds.
      ENDFORM. 
    This is my PERFORM in sapscript.
    /:           DEFINE &V_QANAME& = ''.
    /:           DEFINE &V_QADATE& = ''.
    /:           DEFINE &V_QATIME& = ''.
    /:           PERFORM GET_ACTLOG_QA IN PROGRAM ZFIR002
    /:           USING &VIQMEL-OBJNR&
    /:           CHANGING &V_QANAME&
    /:           CHANGING &V_QADATE&
    /:           CHANGING &V_QATIME&
    /:           ENDPERFORM.                     
    Sapscript
    Prepared by : &V_QANAME& ,, &V_QADATE& ,, &V_QATIME&
    The output now is
    Prepared by: Name   20080312  115536 
    I want to change the date format to 12-MAR-2008
    and the time format to 11:55:36 
    Can anyone please suggest on how to solve this?
    Thank you.

    Hi,
      Before assigning the  QADATE value you can write the logic to display  20080312   as  12-MAR-2008  taking the offset values .
    Like
    qadate = wa_jcds-UDATE.
    qatime = wa_jcds-UTIME.
      lw_year    = qadate(4).
      lw_month = qadate+4(2).
      lw_date    = qadate+6(2).
    case lw_month.
    when 1.
    when 2.
            concatenate lw_date  '-FEB-'  lw_year into qadate.
    when 3.
          concatenate lw_date '-MAR-' lw_year into qadate.
    endcase.
    READ TABLE out_tab INDEX 2.
    MOVE qadate TO out_tab-value.
    MODIFY out_tab INDEX sy-tabix.
    And you can also change the timeformat also  .
    then assign that value to qatime .Then
    READ TABLE out_tab INDEX 3.
    MOVE qatime TO out_tab-value.
    MODIFY out_tab INDEX sy-tabix.
    I think this helps you.
    Regards,
    Rajitha.

  • With in smart forms   i need time format like 12:26:37

    hi,
    in smart forms time format is coming to one variable time in this format 122637, but i need this format  12:26:37
    plz tell me the answer.
    thanks.

    Hi
    Check this:
    REPORT  ztest_time_conv.
    DATA: hour(2) TYPE n,
          min(2) TYPE n,
          sec(2) TYPE n,
          tim TYPE i.
    DATA: time TYPE p DECIMALS 2.
    DATA: timeformat TYPE sy-uzeit.
    time = '1.38'.
    tim = time * 3600.
    hour = tim DIV 3600.
    tim = tim MOD 3600.
    min = tim DIV 60.
    sec = tim MOD 60.
    CONCATENATE hour min sec INTO timeformat.
    WRITE timeformat.
    BREAK-POINT.
    PS:Code given by Vijay Babu Dudla in other thread..in ABAP general..when I pasted the link,it did not work..so I am giving it here like this.
    Regards,
    VIshwa.
    Edited by: Vishwa Sri Hari on Nov 5, 2008 1:01 PM

  • ADF Faces + ADF BC : how to pass an url parameter to a backend business ser

    Hi,
    I'm using latest JDev studio version SU 3.
    My project is using ADF Faces with BC4J in the service layer.
    I have a backend application module which exposes a method taking a String parameter as an input (ex: void setUsername(String username))
    I need to have a jspx page which reads a parameter passed in the url (http://localhost/faces/registerUser.jspx?username=john) and send it to the backend service method when a submit is raised on a clicked button.
    It's pretty simple when using inputtext for example but not obvious if I want to use urm param instead of inputtext.
    How do I do this ?
    Thanks

    Hi,
    Thanks a lot for your answers.
    The link http://www.it-eye.nl/weblog/2006/06/12/passing-a-url-parameter-to-model-using-adf/ is no more reachable.
    The following EL expression work for displaying the parameter inside an outputText component :
    #{facesContext.externalContext.requestParameterMap[’yourParameter′]}
    The parameter is not sent to the business service when the button is clicked.
    Thanks,
    Seb.

  • How to pass the decremented time to the run logic

    hai....
    i has a scenario that the logic has to trigger for the time -1 to the time i has seted to it..
    how can i pass the decrememted time to the RUNLOGIC
    thanks,
    Rajesh

    Hi Rajesh,
    TMVL is not supported in BPC MS.
    Try using
    *RUNLOGIC
         *APPSET= {AppSet}                    //optional
         *APP = {App}                          //optional
         *LOGIC = {logicname}                    //required
         *DIMENSION TIME = PRIOR
    *ENDRUNLOGIC
    Thanks,
    John

  • How to pass a run time parameter in a customized store procedure

    Hi Friend
    I have created customized Store Procedure for some logic. Presently i am executing the Store Procedure through the Data Manager Package.
    But i need to pass a run time parameter at the time of execution the data manager package. Basically i want pass the Materail Dimension Member at the time of data manager execution .
    Looking forward to your views on the same.
    thanks
    krish

    Hi Krish,
    For this, you maintain a script logic and from the script you call the stored procedure alongwith its parameters. Now build a DM on top of the script logic. While running the DM, it should ask the user to select the material members. These members will be automatically passed to the script through %MATERIAL_SET%. In your script, call the stored proc and once of the parameters should be %MATERAIL_SET%.
    Hope this helps.

  • Why is my text formatting like this?

    Hi
    I've set up my .css so that the <H2> is big and bold,
    and that my <p> text is smaller and normal. The problem is
    that I'm getting a line break gap between the two even when there's
    not one in the HTML. There should be a space between the <p>
    and <H2> (padding of 5), but not the <H2> and
    <p>. The HTML is:
    <h2>Designers - </h2>
    <p>enter your designs</p>
    <h2>Everyone -</h2>
    <p>vote for your fav designs<br />
    Here's the .ccs:
    h2 {
    font: Verdana, Arial, Helvetica, sans-serif;
    color: #69DB33;
    font-size:18px;
    font-weight: bold;
    text-align: center;
    padding-top: 5px;
    p {
    text-align: center;
    FONT-SIZE: 13px;
    COLOR: #847d6e;
    FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-style: normal;
    So it kinda looks like this (layout-wise):
    Designers -
    enter your designs
    Everyone -
    vote for your fav designs
    instead of :
    Designers -
    enter your designs
    Everyone -
    vote for your fav designs
    I know I could probably do all the formatting in HTML, but I
    should be able to do it all in .css - can anyone help?
    Cheers
    Shaun

    Your interpretation is correct. Show us the code where it is
    not working
    for you, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Reese" <[email protected]> wrote in message
    news:esfsaq$ms9$[email protected]..
    > "Joe Makowiec" <[email protected]> wrote in
    message
    >
    news:[email protected]..
    >> On 04 Mar 2007 in macromedia.dreamweaver,
    celebritymusic wrote:
    >>
    >>> I've set up my .css so that the <H2> is
    big and bold, and that my
    >>> <p> text is smaller and normal. The
    problem is that I'm getting a
    >>> line break gap between the two even when there's
    not one in the
    >>> HTML. There should be a space between the
    <p> and <H2> (padding of
    >>> 5), but not the <H2> and <p>.
    >>
    >> You want margin, not padding. The diagram here might
    make it clearer:
    >>
    >>
    http://www.w3.org/TR/REC-CSS2/box.html
    >
    > According to that graph, if I apply a background on a
    30px wide div and
    > add 10px padding, the text inside will occuppy only 10px
    (30px - (2 x
    > 10px)), but an applied background would fill all 30px.
    But every time I
    > try it, the background image is just as limited as the
    text is. I can't
    > get the background to fill the padded area.
    >
    > How would I tell a DIV to push the text 10px off all
    four sides, but
    > continue to allow the background image to cover the
    entire div?
    >

  • How do I make my terminal look like this?

    Hello, I'm trying to figure out how this guy made so his terminal look the way it does.
    I've searched around some sites but I can't really figure out what to look for as I don't know the name of the application or what it really is, just that it looks like that.
    http://sites.google.com/site/gotmor/dze … xmonad.png

    Rob (the dzen dev, IIRC and BTW) is probably using urxvt as a terminal. The prompt is a two-line prompt like this one, you'll need zsh for it. Also, he uses XMonad, a tiling window manager, which doesn't draw any window decorations, so there's no close/maximize/minimize buttons or title bar. Good luck getting into them all, you're in for quite a journey.

Maybe you are looking for

  • Lost my iP 3G - How do I use iP 2G until iP 4 is here and keep all my data?

    Lost my iP 3G - How do I use iP 2G until iP 4 is here and keep all my data? Ok so this is a bit complicated - I left my iPhone 3G in a cab last weekend and unfortunately it's lost for good. I still have my original iPhone 2G and have already went to

  • Calling stored function that contains commit from .JCX

    I would like to call a stored function (Oracle) that contains a commit, from a WebLogic database control (.JCX). The suggested way to call a stored function is to do something like: * @jc:sql statement:: * SELECT MY_FUNCTION({projectID}, {staffID}) F

  • Is The iPhone 5 Really Worth It?

    Hopefully I do not get bombarded by hardcore Apple fans but is the iPhone 5 really worth it. I used to have the iPhone 4S, but upgraded it to a Samsung Galaxy S3 and here is what I think of the iPhone 5. With phones like the Galaxy Note 2, Galaxy S3,

  • Viewing and printing PDF files

    I"m trying to print a PDF,  get hit with this pop up below, and can't get past it: "Before viewing PDF in this browser you must launch Adobe Reader, accept the End User Licence Agreement, then quit and relaunch browser" Adobe Reader has been installe

  • What does error 17502 indicate?

    When I run my TestStand Sequence, I'm receiving the following error code "-17502: System Level Exception". The step that fails is a call to a DLL and the sytax of the call looks correct. I call the same DLL various other times before the failed call,