How do i get current dateTime in xsl1.0

Hi,
I came to know that current-dateTime() function is working fine with xsl version 2.0 but not in xsl version 1.0
Can anyone suggest me how to get current date time which works fine with xsl version 1.0 and BPEL process manager (OracleApplicationServer 10.1.3).

Make sure that the History is enabled:
*Firefox/Tools > Options > Privacy > Firefox will: "Use custom settings for history" > Remember my browsing history
Make sure that you do not run Firefox in permanent Private Browsing mode.
*https://support.mozilla.com/kb/Private+Browsing
To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
*Deselect: [ ] "Always use private browsing mode"
Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
*https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

Similar Messages

  • How can i get current time of a given timezone

    how can i get current time of a given timezone
    for example: Asia/Hong_Kong
    my code is like this, but the result is not correct.
    what's wrong?
    import java.util.*;
    public class test {
    public static void main(String[] args){
              String s = "Asia/Hong_Kong";
              String tempS = "";
              TimeZone myTime = new SimpleTimeZone(s);
              //TimeZone myTime = TimeZone.getTimeZone(s);
              Calendar myCal = new GregorianCalendar(myTime);
              tempS = myCal.get(Calendar.YEAR)+"-"+
                        (myCal.get(Calendar.MONTH)+"-"+
                        myCal.get(Calendar.DATE)+" "+
                        (myCal.get(Calendar.HOUR)+":"+
                        myCal.get(Calendar.MINUTE)+":"+
                        myCal.get(Calendar.SECOND);
              System.out.println(tempS);
    output is : 2001-7-15 11:16:48
    but the correct time should be: 2001-8-16 7:17:48
    the correct time should be 2001-8-16

    Certain indexes in the Calendar API start at 0 rather then 1, so, when you get the value, you may want to increment.
    I'm not sure why the time is incorrect. You may want to call getAvailableIDs() and make sure that the desired TimeZone ID is supported by your version. I doubt that Sun would have incorrect support for the time zone, but it may not be included, or perhaps it is included with a diffrent ID. You can always create your own time zone as well, by passing the String offset to getTimeZone(), the offset being how many hours beyond or before GMT. Hopefully this helps.

  • How do i get current active or selected page item's  reference

    Hi all,
    How do i get current active or selected page item's  reference .
    Please help me

    You can implement a selection suite for your need, this selection suite will be placed into the kLayoutSuiteBoss.
    In this selection suite place a method to give you the UIDRef of the selected pageitem, which you can get by using the method "GetUIDList" of the "ILayoutTarget" interface.
    Manan Joshi
    - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • How can i get current time in different TimeZone

    Hi alls,
    How can i get current time in different TimeZone.
    I've tried
    final Calendar calendar = Calendar.getInstance(GMT0_TIME_ZONE);
    final Date date = calendar.getTime();
    but it returns current time in my time zone not in GMT0

    a simple way would be:Sometimes gets you the right result (not during daylight saving), but always the wrong way.
    I would strongly recommend getting into the habit of handling Dates correctly. A Date is a universal instant in time - the number of milliseconds since midnight GMT on 1 January 1970. That instant corresponds to various dates and times, depending on your time zone and the effect of daylight saving. You make that conversion of a universal instant to a localized date/time using Calendar and DateFormat.

  • How can we get current time date with resultset?

    Dear All,
    I have to insert current time date in the table.So,i need to get the current time and date with result set.So,I will first get the time date and then insert it into the table.
    I know how can we get current time and date without resultset.i have created this function its working.But now i want to use this.mean using resultset i want to put in the table.
    How can i do this?
    public static String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
    public static String now() {
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
    return sdf.format(cal.getTime());
    }

    yuck. Why not simply set a "new java.sql.Date()" to the SQL parameter in question?

  • Get Current Datetime in an XSL

    How do I add a current Datetime to an XSL document? The following sample works in XALAN but not ORAXSL. date:new() returns nothing!?
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date" exclude-result-prefixes="date">
    <xsl:template name="createCurrentDATETIME">
    <xsl:variable name="today" select="date:new()"/>
    <xsl:variable name="len" select="string-length(normalize-space($today))"/>
    <xsl:choose>
    <xsl:when test="$len &gt; 0">
    <xsl:element name="DATETIME">
    <xsl:element name="YEAR">
    <xsl:value-of select="substring($today,$len - 4,$len)"/>
    </xsl:element>
    </xsl:element>
    </xsl:when>
    <xsl:otherwise>
    <xsl:element name="DATETIME">
    <xsl:element name="YEAR">2002</xsl:element>
    </xsl:element>
    </xsl:otherwise>
    </xsl:choose>
    ...

    The following example will work. Please use the "toString()" functions.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date" exclude-result-prefixes="date">
    <xsl:template match="/">
    <xsl:variable name="today" select="date:new()"/>
    <xsl:variable name="len" select="string-length(normalize-space(date:toString($today)))"/>
    <!-- <xsl:value-of select="date:toString($today)"/>-->
    <xsl:value-of select="substring(date:toString($today),$len - 4,$len)"/>
    </xsl:template>
    </xsl:stylesheet>

  • How does BR get current date, user, and associate member with Attribute Dim

    I need use Business rules or Calc script to implement following functions:
    1. Get current date and the name of user who is running the BR and save the information to cube.
    I don't find any functions to get current date and users.
    Also, since text and date is store in relational database and essbase cube only stores the index, it looks that the value can't be changed or stored by using "==" directly, is there any function to change value of members with Text or Date types in BR/Calc script?
    2. End users select attribute value (via smart list) of products or projects(Sparse dimensions) in data form, run BR to update the association of these members with attribute dimension.
    I don't find any functions to change the attribute association in BR/Calc, is there any CDF (Custom Defined Function) that can do it?
    Thanks!

    Hi,
    For the date functionality, check out the post below.
    Re: Days behaviour between two dates
    As for the username, there is a little tricky way that requires an unused or a new dimension along with a smart list of user names. It's also possible to capture the user name from the cookies and pass it on to the form. The latter is possible through validatedata.js however requires hefty coding here and there.
    As for the attributes, it's not possible to update metadata through business rule. So no luck in there.
    Cheers,
    Alp

  • How to get current datetime in KQL

    I need to create the following KQL query:
    {SearchBoxQuery} ManagedProperty1 > DateTime.Now
    What should I write instead of DateTime.Now?
    I had searched a lot for an answer in Bing and here before I posted this question.
    Any Idea?

    I solved it:
    I had to use the keyword {Today}
    {SearchBoxQuery} ManagedProperty1>{Today}
    Notice that it's important to not have a space near the > character.

  • URG: How can i get current URL in PL/SQL?

    Hello,
    i need to get the URL of a page in order to read the parameters i pass from a page to another page.
    The owa_util.get_cgi_env('QUERY_STRING'); function doesn't work properly, so i'd like to know if there is a standard portal pl/sql function that return the current URL.
    In particular i know the wwpro_api_parameters package, but i have some pages without any portlets inside.
    For example:
    if a URL has these parameters: http://.......?empno=10&deptno=20
    can i use the "get_value" function in a custom procedure?
    l_value :=wwpro_api_parameters.get_value
    ('empno','p_reference_path');
    Does anybody know how to do that? and what do i have to put in the p_reference_path?
    Thanks in advance
    Ettore
    null

    Hi Ettore,
    Have a look at this thread: http://technet.oracle.com:89/ubb/Forum66/HTML/000956.html
    Regards,
    Peter

  • How to insert the current datetime?

    Hello everyone,
    I'm beginner in this world, sorry for my simple question.
    I wanna insert the current date and time on the database after my application has started the stored procedure.
    I have to insert the following format for datetime column: 03/19/2015 00:00:00 (i.e. MM/DD/YYYY XX:XX:XX AM/PM)
    Is it correct to use this line?
    TO_DATE(SYSDATE, 'MM/DD/YYYY HH24:MI:SS')
    My SYSDATE example:
    SELECT SYSDATE from DUAL;
    3/19/2015 5:43:37 PM
    CREATE OR REPLACE PROCEDURE "BD"."PROC" (
    p_varCONTACT_INFO NVARCHAR2,
    p_varDAILY_FROM NUMBER,
    p_varDAILY_TILL NUMBER,
    p_varGRUPO_DESTINO VARCHAR2,
    p_varPROTOCOLO VARCHAR2,
    p_varMCDU VARCHAR2,
    p_varCLUSTER_N VARCHAR2,
    p_varGRUPO_ORIGEM VARCHAR2,
    p_varRP_DESTINO VARCHAR2,
    p_varMOTIVO_QUEDA VARCHAR2,
    p_varSWITCH_DESTINO VARCHAR2,
    p_varACCOUNT_NUMBER_IVR VARCHAR2,
    AS
    BEGIN
    INSERT INTO BD.TA_CALLBACK
    RECORD_ID,
    CONTACT_INFO,
    CONTACT_INFO_TYPE,
    RECORD_TYPE,
    RECORD_STATUS,
    CALL_RESULT,
    ATTEMPT,
    DAILY_FROM,
    DAILY_TILL,
    TZ_DBID,
    CHAIN_ID,
    CHAIN_N,
    GROUP_ID,
    SWITCH_ID,
    PROTOCOLO,
    MCDU,
    GRUPO_DESTINO,
    RP_DESTINO,
    GRUPO_ORIGEM,
    MOTIVO_QUEDA,
    SWITCH_DESTINO,
    DATA,
    CAMPO1,
    CLUSTER_N
    SELECT
    NVL(MAX(record_id),0) + 1,
    p_varCONTACT_INFO,
    1,
    2,
    1,
    28,
    0,
    p_varDAILY_FROM,
    p_varDAILY_TILL,
    131,
    NVL(MAX(chain_id),0) + 1,
    0,
    8847,
    283,
    p_varPROTOCOLO,
    p_varMCDU,
    p_varGRUPO_DESTINO,
    p_varRP_DESTINO,
    p_varGRUPO_ORIGEM,
    p_varMOTIVO_QUEDA,
    p_varSWITCH_DESTINO,
    TO_DATE(SYSDATE, 'MM/DD/YYYY HH24:MI:SS'),
    p_varACCOUNT_NUMBER_IVR,
    p_varCLUSTER_N
    FROM BD. TA_CALLBACK;
    END PROC;
    Environment: Oracle 10g
    Best regards,
    Henrique Silva

    Hi,
    Well the session is the one that displays the date dataype as you want:
    SQL> select sysdate dt from dual;
    DT
    23-MAR-15
    SQL> alter session set nls_date_format='dd/mm/yyyy hh:mi:ss pm';
    Session altered.
    SQL> select sysdate dt from dual;
    DT
    23/03/2015 11:37:32 pm
    SQL> select sysdate + interval '6' hour as dt from dual;
    DT
    24/03/2015 05:37:59 am
    Regards.

  • How did i get current users in my LocalAreaNetwork

    Hi everybody...
    I need to find the computers Name and the login user name in my LAN. i get computer name using 'net view'
    command.but i am unable to find the currently login username for particular computer..is it possible to get the login
    username from the input computers Name.
    I am using windows xp os..
    If any body have idea please reply me...

    Some OS's support several users logging into the same box at the same time.
    # who
    posman pts/0 May 6 14:17 (10.82.163.90)
    posman pts/1 May 6 14:17 (10.82.163.90)
    root pts/2 May 6 14:18 (10.82.163.90)
    So what is the "current" login username of the above box?
    Even XP can suspend a user session and leave the programs running while another user logs in.

  • How can I get current Number file name in a cell ?

    I want to write current Number (3.5) file name in a cell.
    It was working in previous version of Number but not with latest one. Thanks.

    Yes, you can click the title bar of any document (the down arrow) to access the current file name:

  • How do I get current session language  in the jsp page ?

    I have a simple jsp page which I called from the iProcuremnt. I need to display the session language, which user select from preference/login page .
    Here is my code snippet.
    <%
    WebAppsContext _ctx = null;
    _ctx = WebRequestUtil.validateContext(request, response);
    WebRequestUtil.setClientEncoding(response, _ctx);
    Connection conn = ctx.getJDBCConnection();
    String sql = "select fnd_global.org_id , 'FRC/US' from dual”
    //fnd_profile.value('ICX_LANGUAGE') always get AMERICAN
    _ps = _conn.prepareStatement(sql);
    _rs = _ps.executeQuery();
    out.println("The Org id is : " + corg + " , "Langage is : " + cLang);
    %>
    Thank you in advance.

    destination URI should have one more parametre, say lang IS ENG
    MyTestPage.jsp?MODE=U&RLI={$RequisitionLineId}&LANG=ENGLISH
    and get this param from url in jsp.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can I get currently running script file path in PS CS (8.x)

    Is it possible to retrieve full file name of my script file in Photoshop CS (8.x)?
    Constructions:
    b ScriptName = $.fileName
    and
    b try { some_error }
    b catch(e) { ScriptName = e.fileName; }
    are not works in Photoshop CS

    Hi Mike,
    Based on your description, we can enable the policy setting to see if it helps:
    Computer Configuration\Administrative Templates\System\Logon\Always wait for the network at computer startup and logon
    Besides, regarding how to assign log on scripts, the following article can be referred to for more information.
    Assign User Logon Scripts
    http://technet.microsoft.com/en-us/library/cc770908.aspx
    Moreover, as Carl suggested, instead of using scripts, we can utilize Group Policy Preferences Dive Maps extension to map drives for users.
    Regarding this point, the following article can also be referred to for more information.
    Drive Maps Extension
    http://technet.microsoft.com/en-us/library/cc731729.aspx
    Configure a Mapped Drive Item
    http://technet.microsoft.com/en-us/library/cc770902.aspx
    Best regards,
    Frank Shen

  • Jdbc query cached?  OR how do I get current results?

    Two CF pages exist: a "list" page and an "edit" page.  The user selects a record from the "list" page via a link to the "edit" page.  The "edit" page is a form which submits back to itself to update the record, then returns to the "list" page via cflocation.
    There are literally hundreds of mdb files which could be accessed via these pages, based on the user login information.  The path to the files is known by their login, and we don't want to maintain hundreds of odbc connections, so the jdbc driver within cfscript is being used to access the data, with the path to the database file reference in the getConnection function.
    The problem is this:  after the record is updated and cflocation returns to the list page, the list page does not return the current database information (the record which was just edited still shows the old information).  If the page is refreshed manually (F5 type stuff), then the updated data is shown.  It's like the query on the "list" page is being cached or something.  I have tried a meta tag to expire the page, but that doesn't help.
    Another set of data is edited on these pages but resides on SQL Server and used cfquery.  This problem does not exist with that set of code.
    CF MX7 is the CF Server version.
    Here's the cfscript used on the "list" page:
    <cfscript>
      classLoader = createObject("java", "java.lang.Class");
      classLoader.forName("sun.jdbc.odbc.JdbcOdbcDriver");
      dm = createObject("java","java.sql.DriverManager");
      con = dm.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};Dbq=#fullPathToMDBFile#;Uid=;Pwd=;");
      st = con.createStatement();
      rs = st.ExecuteQuery( "#GroupQuery#" );
      group = createObject("java", "coldfusion.sql.QueryTable").init(rs);
    </cfscript>
    And the cfscript on the "edit" page:
       <cfscript>
        classLoader = createObject("java", "java.lang.Class");
        classLoader.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        dm = createObject("java","java.sql.DriverManager");
        con = dm.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};Dbq=#fullPathToMDBFile#;Uid=;Pwd=;");
        st = con.createStatement();
        st.Execute( "#UpdateQuery#" );
       </cfscript>
    Which is followed by:
         <cflocation url="listrecs.cfm">
    At the suggestion of a java-knowledgeable friend, I tried:
      st.close();
      con.close();
    after the st.ExecuteQuery, but still got the same results.
    Thoughts??
    Thanks.

    Yes, always do that anyway. It is not good to have open connections lying around.
    Are you sure it is not just a persistent case of browser caching? Try the old trick of tacking a random number onto the url each time, using randRange().  See if it makes a difference.
    As far as datasources, you could try creating a single datasource and using it to query all the other databases.  IIRC it should be listed under external tables in the MS Access help files.  I can never remember the syntax, but is something like:
    SELECT  Columns
    FROM     TableA IN 'c:\databaseFolder\someDatabaseName.mdb'
    IIRC MS Access databases let you query another databases using a special syntax fro
    [b]Update:[/b] Disclaimer, I have not used Access in years.  So I have no idea about the potential issues, other than the obvious (ie Access is not really designed for this)
    At the suggestion of a java-knowledgeable friend, I tried:
      st.close();
      con.close();
    after the st.ExecuteQuery, but still got the same results.

Maybe you are looking for