FormatDateTime (Date, 2) return the date in an incorrect format.

Hi all

The region in my PC setting is in the United Kingdom. Short date is dd/mm/yyyy. But when I run the code in the following vb script. He's back in the form dd/mm/yyyy date. System date time shows in the correct format.

sDateTime = FormatDateTime (Date, 2) & "" & FormatDateTime (time, 4)
MsgBox sDateTime

OS is XP SP3

I googled but found no answer to this question. Can someone help me solve this problem?

Thank you

Chantal

Hi Emmanuel,.
 

As you say the problem appearing while executing the code in Visual Basic script, your question is more complex than what is generally answered in the Microsoft Answers forums. It should be better in the forums of Visual Basic.

Post your request in the Instances of Visual Basic for assistance on this issue.

Tags: Windows

Similar Questions

  • the email field is incorrectly formatted

    My domain name ends with .graphics and not with the standard '.com'

    Could this be why I get the above error message when you try to connect to DPS App Builder?

    Well Yes, that's probably the problem. Please call assistance to businesses to help with this, they'll be able to get a report open the App Builder team. Thank you!

    Neil

  • How to configure a web service primavera to return the data in the second database?

    Hello world


    We have P6 with WS first deployment on a single weblogic domain server. The first WS returns the first instance of database data.

    Then deployed to the WS second tip on a weblogic domain server separated with a different port. Set up the second WS with < WS2_INSTALL_HOME > / bin/dbconfig.sh, creating a new branch a configuration that specifies one second instance of the database. However, this configuration is ignored, and the second web services return data from the database.

    We have a single domain, including notably the following servers:

    Name / host / Port / deployments

    P6 / localhost / 0001 / P6 (v8.3), p6ws1 (v8.3)

    p6ws2 / localhost / 0002 / p6ws2 (v8.3)

    We have now two different files BREBootstrap.xml.

    P6 BREBootstrap.xml:

    < database >

    < URL > JDBC:Oracle:thin:@db1:1521:db1 < / URL >

    < user name > pubuser < / name >

    password <>anycriptopass1 < / password >

    oracle.jdbc.OracleDriver < driver > < / driver >

    < PublicGroupId > 1 < / PublicGroupId >

    < / data >

    < CfgVersion > 8.330 < / CfgVersion >

    <>configurations

    < name BRE = 'P6 Config_DB1"instances ="1"logDir ="anydir, P6EPPM, p6, PrimaveraLogs"/ >

    < / configuration >

    p6ws2 BREBootstrap.xml:

    < database >

    < URL > JDBC:Oracle:thin:@DB2:1521:DB2 < / URL >

    < user name > pubuser < / name >

    password <>anycriptopass2 < / password >

    oracle.jdbc.OracleDriver < driver > < / driver >

    < PublicGroupId > 1 < / PublicGroupId >

    < / data >

    < CfgVersion > 8.330 < / CfgVersion >

    <>configurations

    < name BRE = 'P6 Config_DB2"instances ="1"logDir ="anydir, P6EPPM, ws2, PrimaveraLogs"/ >

    < / configuration >

    "P6 Config_DB1" and "P6 Config_DB2" including the property database for the database 1 and 2 respectively.

    How to set up a second web service to return the data to the second database?


    Thanks in advance!


    Kind regards

    Dmitry

    So, answer oracle support:

    Looks like it is in the documentation, Web Services cannot be configured in this way as the other modules. See the following topics:

    BUG 19516437 - Is it POSSIBLE TO hardcode a DEPLOYMENT of SERVICES WEB P6 to an INSTANCE of DATABASE? (ask if this is possible)

    BUG 19579735 - FOR BEING ABLE to hardcode A P6 WEB SERVICES DEPLOYMENT to A DATABASE INSTANCE (corresponding improvement because it can be done).

    The problem has been resolved by the following:

    1 create the WebLogic domain.

    2 P6 and p6ws deployed on managed servers.

    3 configuration P6 uses the second instance of database and P6 has not begun.

    4 result: the p6ws (from additional domain WebLogic) returns data for the second instance of the database.

    Kind regards

    Dmitry

  • I want to return the product to stop the renovation and to remove the data from credit card

    I want to return the product to stop the renovation and to remove the data from credit card

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • sys_refcursor do not fetch any data, even if the query returns the value

    I use sys_refcursor to return the columns and aid below the procedure to do. Although the data are there in table_1 and table_2.

    PROCEDURE test_pro (abc_date N, DATE,
    cur_get_data ON sys_refcursor
    )

    OPEN cur_get_data
    for
    Select A.col1, B.col2
    from table_1 A
    where A.dis_date = abc_date
    left outer join
    table_2 B
    on
    A.dis_date = B.dis_date;

    IF cur_get_data % rowcount = 0
    then
    raise e_error;
    END if;

    EXCEPTION
    When e_error
    then
    -no_data_found;
    while others
    then
    -(giving an error with the SQL error code);

    END test_pro;


    When running under sql in the sql pl/sql developer window pick
    data
    Select A.col1, B.col2
    from table_1 A
    where A.dis_date = abc_date
    left outer join
    table_2 B
    on
    A.dis_date = B.dis_date;

    But while testing the test_pro in the test of the pl/sql Developer window, it is
    do not fetch all data and raise e_error every time

    is there a problem arising from the use IF cur_get_data % rowcount = 0 whenever that happens in the exception block.

    so can someone please put a few ideas what cud be the reason for this?
    PROCEDURE test_pro(abc_date IN DATE,
                       cur_get_data OUT sys_refcursor
                      ) is
    BEGIN
    
      OPEN cur_get_data for select A.col1,B.col2
                              from table_1 A
                             where A.dis_date = abc_date
                                   left outer join
                                   table_2 B
                                on A.dis_date = B.dis_date;
    
    /* while testing let exceptions just pop out
    EXCEPTION
    
      when no_data_found
      then
    ------no_data_found;
      when others
      then
    --------(giving SQL error with error code);
    */
    END test_pro;
    

    then you test as something like

    declare
    
      my_date   date := to_date('20120621','yyyymmdd');
      my_cursor sys_refcursor;
      col1      ... ;
      col2      ... ;
    
    begin
    
      test_pro(my_date,my_cursor);
    
      loop
    
        fetch my_cursor into col1,col2;
        exit when my_cursor%notfound;
        dbms_output.put_line(col1 || ' ~ ' || col2);
    
      end loop;
    
    end;
    

    Concerning

    Etbin

  • How to return the value 0 for no data using the County?

    Hi all
    I used this query to count the number of records for each month of the year:

    SELECT DISTINCT COUNT (I.information_sid) COUNT, TO_DATE (TO_CHAR (INSERT_DATE, 'MM'), 'MM') MONTH

    INFORMATION I

    TO_DATE GROUP (TO_CHAR (INSERT_DATE, 'MM'), 'MM')

    ORDER BY TO_DATE (TO_CHAR (INSERT_DATE, 'MM'), 'MM')

    But this code returns no value for months without data
    I want to return the value '0' for any month of data. How, please?

    Note: I use reports 6i.

    Maybe this?

    SELECT SUM(CNT_REC) CNT_REC, MONTH
    FROM
    (
    SELECT COUNT(I.information_sid) CNT_REC, TO_DATE(TO_CHAR(INSERT_DATE,'MM'),'MM') MONTH
    FROM INFORMATIONS I
    GROUP BY TO_DATE(TO_CHAR(INSERT_DATE,'MM'),'MM')
    UNION ALL
    SELECT 0, LPAD(ROWNUM,2,0)
    FROM ALL_OBJECTS
    WHERE ROWNUM <= 12
    )
    GROUP BY MONTH
    ORDER BY MONTH
    

    No need to SEPARATE during the use of GROUP BY.

    -Clément

  • Query Union returns the correct data x 2

    I have a union query that returns 2 identical lists of data. The data are correct, but I can't work on why it is duplicated. Can anyone help? Thank you.

    John
    ****************************
    set linesize 400
    set pagesize 9999
    NewPage Set 1
    wrap off Set
    break off Set
    Set of feedback on

    set the file name = CATS_TURBO_all_LiveT

    coil & filename

    Noprint today new_value DATEVAR COLUMN
    COLUMN case_id FORM 999999 TITLE 'fault '.
    COLUMN product_name FORMAT a10 HEADING 'node '.
    COLUMN priority_type_name format a4 POSITION "PRI."
    Report_date FORMAT of the COLUMN entitled date 'Date of Recvd'
    Restore_date FORMAT of the COLUMN date TOPIC "restored".
    Close_date FORMAT of the COLUMN date POSITION "closed".
    COLUMN assigned_tech_id FORMAT a10 TITLE "GENIUS".
    COLUMN status_type_name FORMAT a3 DIRECTION "FS".
    Header of COLUMN name format a4 'Type '.
    Header of COLUMN Champ_1 format a20 'Exchange '.
    COLUMN sla_name format a12 direction "platform".
    Format COLUMN header generic a4 "Gen."
    COLUMN question_text format a90 titled "Error Description".
    COLUMN note_text a90 format called 'progress '.

    TTITLE left 'report ' -.
    Center ' TURBO all flaws (& filename... SQL) "-"
    Jump STRAIGHT DATEVAR-
    Left ' wait > > ' jump 1

    Select distinct
    a.case_id "Fault."
    c.product_name
    , decode (f.priority_type_name, 'Low', '4', 'Medium', '3', 'High', '2', 'Urgent', '1') Pri
    , to_char (a.report_date, ' DD/MM/YYYY HH24') "received".
    , to_char (' a.restore_date, ' DD/MM/YYYY HH24 ")"restored ".
    , to_char (a.close_date, ' DD/MM/YYYY HH24') 'closed '.
    , decode (d.name, 'Software', from ", 'Hardware', 'H', 'Firmware', 'F', 'Unknown', 'U', 'General', 'Gen', 'Doc', 'Doc', 'n' and"No. Fault"") 'Type '.
    , decode (b.status_type_name, ' closed - resolved ', '02', 'Pending', '40', 'On Hold - waiting for approval', '41 ', 'pending', '41', 'Wait-Service restored', ' 41', 'lack of training', '44', 'Telesys survey fault', '44') FS
    g.field_1
    e.sla_name
    , decode (a.assigned_tech_id, '10', 'JSMITH', '09', 'MBROWN', '07', 'SCHATTER', '08', 'RSMEED' ', '12', ' SCHOYM') 'B '.
    , to_char (sysdate, 'DD-MON-YYYY HH24') today
    , to_char (translate (dbms_lob.substr(a.question_text,100), CHR (13) |)) CHR (10), CHR)
    question_text 32)))
    , null "Note".
    of oracledb.incident one
    oracledb.status_type b
    c oracledb.item_type
    oracledb.problem_type d
    e oracledb.sla
    oracledb.priority_type f
    oracledb.item g
    oracledb.incident_note h
    where (a.status_type_id = b.status_type_id)
    and (a.product_id = c.product_id)
    and (a.problem_type_id = d.problem_type_id)
    and (a.sla_id = e.sla_id)
    and (a.priority_type_id = f.priority_type_id)
    and (a.product_id = g.product_id)
    and e.sla_name = "TURBO PÉI"
    and g.field_1 not in the (' SysCntl-1', ' SysCntl-2', "TURBO PÉI" "")
    and a.case_id = h.case_id (+)
    and not exists (select case_id from k oracledb.incident_note where k.case_id = a.case_id)
    and a.deleted <>' 1'
    Union
    Select distinct
    a.case_id "Fault."
    c.product_name
    , decode (f.priority_type_name, 'Low', '4', 'Medium', '3', 'High', '2', 'Urgent', '1') Pri
    , to_char (a.report_date, ' DD/MM/YYYY HH24') "received".
    , to_char (' a.restore_date, ' DD/MM/YYYY HH24 ")"restored ".
    , to_char (a.close_date, ' DD/MM/YYYY HH24') 'closed '.
    , decode (d.name, 'Software', from ", 'Hardware', 'H', 'Firmware', 'F', 'Unknown', 'U', 'General', 'Gen', 'Doc', 'Doc', 'n' and"No. Fault"") 'Type '.
    , decode (b.status_type_name, ' closed - resolved ', '02', 'Pending', '40', 'On Hold - waiting for approval', '41 ', 'pending', '41', 'Wait-Service restored', ' 41', 'lack of training', '44', 'Telesys survey fault', '44') FS
    g.field_1
    e.sla_name
    , decode (a.assigned_tech_id, '10', 'JSMITH', '09', 'MBROWN', '07', 'SCHATTER', '08', 'RSMEED' ', '12', ' SCHOYM') 'B '.
    , to_char (sysdate, 'DD-MON-YYYY HH24') today
    , to_char (translate (dbms_lob.substr(a.question_text,100), CHR (13) |)) Chr (10), Chr (32))) question_text
    , to_char (translate (dbms_lob.substr(h.note_text,100), CHR (13) |)) Chr (10), Chr (32))) note_text
    of oracledb.incident one
    oracledb.status_type b
    c oracledb.item_type
    oracledb.problem_type d
    e oracledb.sla
    oracledb.priority_type f
    oracledb.item g
    oracledb.incident_note h
    where (a.status_type_id = b.status_type_id)
    and (a.product_id = c.product_id)
    and (a.problem_type_id = d.problem_type_id)
    and (a.sla_id = e.sla_id)
    and (a.priority_type_id = f.priority_type_id)
    and (a.product_id = g.product_id)
    and e.sla_name = "TURBO PÉI"
    and g.field_1 not in the (' SysCntl-1', ' SysCntl-2', "TURBO PÉI" "")
    and a.case_id = h.case_id
    and h.note_id = (select max (i.note_id)
    oracledb.incident_note I have
    where a.case_id = i.case_id)
    and a.deleted <>' 1'
    order by 1;
    /
    SPOOL OFF
    Clear jump
    output

    Published by: user13388553 on 11/24/2010 14:59

    If your code is that you run in the production data splits because you're runnign queries twice.

    from oracledb.incident_note i
    where a.case_id = i.case_id)
    and a.deleted '1'
    order by 1;
    /
    SPOOL OFF
    

    The semicolon after that command by 1 causes the statement to be executed, the slash on the next line causes the reexecute being. Delete one of them.

    John

  • in which order will select * return the data?

    Hi guys,.

    (1) if we just do a select * from emp, it returns the data in the order data in the scope blocks. that is to return all the measurement data blocks 1, then from measure 2 and so on?
    (2) if we do a select * from emp and say half of the data blocks are already in the database buffer cache, how Oracle knows that the PEM data blocks are already in the database buffer cache? He kept a correspondence table?

    Thank you

    OracleGuy777 wrote:
    Hi guys,.

    (1) if we just do a select * from emp, it returns the data in the order data in the scope blocks. that is to return all the measurement data blocks 1, then from measure 2 and so on?

    I don't think that what this will be like in the same order. Hans's response is more appropriate, I think that it is the nucleus which decides the best way to access the oracle table.

    (2) if we do a select * from emp and say half of the data blocks are already in the database buffer cache, how Oracle knows that the PEM data blocks are already in the database buffer cache? He kept a correspondence table?

    Yes, indeed it is. The blocks are having a DBA (data block address) including the case number and the block #. This number is hashed and the key pair / generated value is used in a table comrising buckets, where each segment is the property of the value of a hash. When you say let me have access this table buffers, your server process analysis this table to see if there are already buffers for this available table. If so, it will access pads here otherwise access is reported to be done from the hard drive. To make space in the buffer cache, REPL (replace aka the LRU list) is used where the buffers are placed in the Middle using the algorithm of insertion of the median value.

    Hope that this somehow :).

    HTH
    Aman...

  • Return the latest data of the transaction, based on the transaction dates.

    Thank you I am a little dense here, and I've searched, read and tried out a few different solutions I've seen give around the place. However; I think I'm more fighting with the naming conventions and the logic of other persons requests you to mine understanding (hoping here!)

    I have a huge table that contains a record for each transaction that has an effect on our inventory (yup - LARGE table!)

    For a given transaction type "CHC" (fresh), I want to return the part code, the Transaction Date and the costs of Transaction for TWO LAST changes.

    Because its to be used for tracking updates to the cost of the materials and further for the calculation of the continuous effect of these, I just need the two for now.

    Thus,.

    The table is I50F

    The required columns are

    I50PART - [Code part | http://forums.oracle.com/forums/]
    I50TDAT - [Date of the Transaction | http://forums.oracle.com/forums/]
    I50UCOST - [price changed to | http://forums.oracle.com/forums/]
    I50TRNS - [Type of Transaction - we want just that CHC]

    Examples of data (including columns fair that we are interested in)
    I50PART              I50TDAT             I50UCOST         I50TRNS 
    
    BACCA001             08/03/2006 07:34:51 0.08829          CHC     
    BACCA001             25/07/2007 08:26:30 0.10329          CHC     
    BACCA001             10/04/2008 16:29:02 0.10639          CHC     
    BACCA003             20/06/2006 12:22:30 0.16814          CHC     
    BACCA003             25/07/2007 08:26:54 0.17024          CHC     
    BACCA003             10/04/2008 13:30:12 0.17535          CHC     
    BACCA004             28/08/2007 15:46:03 0.06486          CHC     
    BACCA004             28/08/2007 15:49:15 0.06328          CHC     
    BACCA004             30/10/2008 09:22:40 0.06952          CHC     
    BACCA004             13/01/2009 09:09:07 0.06867          CHC     
    BACCA005             25/07/2007 08:27:24 0.06715          CHC     
    BACCA005             10/04/2008 15:45:14 0.06916          CHC     
    BACCA005             30/10/2008 09:05:17 0.07453          CHC     
    BACCA005             13/01/2009 09:06:49 0.07275          CHC     
    Take a part in isolation, BACCA005;

    I am interested in two past reviews.

    It is logical that there are two records by part of output at this stage, as it is possible that the power decide they want the last 3 or 4 or whatever (I'm sure everyone has similar experiences with beancouters)

    Is this A) easy and B) relatively effective. There are 2.4 million records in the table.


    If I was stupid and not included is not enough information, you please poke me [metaphorically] in my eyes, and I'm going to pad a little.

    Thank you very much for reading - and even more so if you can help!

    See you soon

    J

    Analytical functions FTW!

    with I50F as (select 'BACCA001' I50PART, to_date('08/03/2006 07:34:51', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.08829 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA001' I50PART, to_date('25/07/2007 08:26:30', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.10329 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA001' I50PART, to_date('10/04/2008 16:29:02', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.10639 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA003' I50PART, to_date('20/06/2006 12:22:30', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.16814 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA003' I50PART, to_date('25/07/2007 08:26:54', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.17024 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA003' I50PART, to_date('10/04/2008 13:30:12', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.17535 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA004' I50PART, to_date('28/08/2007 15:46:03', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.06486 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA004' I50PART, to_date('28/08/2007 15:49:15', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.06328 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA004' I50PART, to_date('30/10/2008 09:22:40', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.06952 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA004' I50PART, to_date('13/01/2009 09:09:07', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.06867 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA005' I50PART, to_date('25/07/2007 08:27:24', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.06715 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA005' I50PART, to_date('10/04/2008 15:45:14', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.06916 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA005' I50PART, to_date('30/10/2008 09:05:17', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.07453 I50UCOST, 'CHC' I50TRNS from dual union all
                  select 'BACCA005' I50PART, to_date('13/01/2009 09:06:49', 'dd/mm/yyyy hh24:mi:ss') I50TDAT, 0.07275 I50UCOST, 'CHC' I50TRNS from dual)
    select I50PART, I50TDAT, I50UCOST, I50TRNS
    from   (select I50PART, I50TDAT, I50UCOST, I50TRNS, row_number() over (partition by I50PART order by I50TDAT desc) rn
            from   I50F
            where  I50TRNS = 'CHC')
    where  rn <= 2
    order by I50PART, I50TDAT desc;
    
    I50PART  I50TDAT               I50UCOST I50
    -------- ------------------- ---------- ---
    BACCA001 10/04/2008 16:29:02     .10639 CHC
    BACCA001 25/07/2007 08:26:30     .10329 CHC
    BACCA003 10/04/2008 13:30:12     .17535 CHC
    BACCA003 25/07/2007 08:26:54     .17024 CHC
    BACCA004 13/01/2009 09:09:07     .06867 CHC
    BACCA004 30/10/2008 09:22:40     .06952 CHC
    BACCA005 13/01/2009 09:06:49     .07275 CHC
    BACCA005 30/10/2008 09:05:17     .07453 CHC
    
  • How can I return the data again to Flex my cfc

    I use a cfc by default CRUD built in Flex Builder 3 using activeRecord. I changed my cfc to return the query and access remotely, but I always event.result = null.

    What I am doing wrong? I just want to return the folder after I save it.

    I know I could create a new method in my manager to call a query that will get the record based on my values of form, but I want to return that same value without having to suddenly. Is this possible?

    Flex MXML

    < mx:RemoteObject

    ID = "roMyObject" destination = "ColdFusion" source = "CFCs. MyGateway"showBusyCursor ="true">

    < name mx:method = 'save' result = "MyHandler (event); "/ >

    < / mx:RemoteObject >

    Gateway CFC

    < cffunction = 'save' output name = "false" access = "remote" >

    < name cfargument = "obj" required = "true" / >

    < cfreturn obj.save () / >

    < / cffunction >

    CFC

    < cffunction = 'save' output name = "false" access = "public" returntype = "Cancel" >

    < cfscript >

    If (this.getClassifiedID (eq) 0)

    {

    Create();

    } else {}

    Update();

    }

    < / cfscript >

    < / cffunction >

    < name cffunction "crΘer" output = "false" returntype = access = "remote" = "query" >

    < cfargument name = "obj" required = "true" >

    < cfset var qCreate = "" >

    < cfset var qread read = "" >

    < cftransaction isolation = "read_committed" >

    < cfquery name = "qCreate" >

    Create folder

    < / cfquery >

    < cfquery name = "qGetID" >

    Select last_insert_id() as new_id;

    < / cfquery >

    < / cftransaction >

    < cfreturn qGetID >

    < / cffunction >

    Hello

    You gave the return type of function as zero economy. Try the following code.

    If (this.getClassifiedID (eq) 0)

    {

    result = create();

    } else {}

    result = update();

    }

    Hope this helped you

    concerning

  • Date arithmetic: how to format the result to hh24:mi:ss then subtract 2 dates

    Hello
    I need to subtract two dates and formatting the result in the hh24:mi:ss format.

    for example
    Select to_number (to_date ('03.08.2009 08:10:30 ',' JJ.)) MM YYYY HH24:MI:SS')-to_date ('03.08.2009 08:06:52 ',' JJ.) MM YYYY HH24:MI:SS')) * 1440 as DiffDate
    of the double

    DiffDate
    ------------------------------------------------------------------------
    3,63333333333333333333333333333333333312

    Multiplication with 1440 returns the result in a few minutes. But I want to format the result (3,63333) in the hh24:mi:ss format. Is there an easy way to convert
    the result of number in the date format?

    Any help will be appreciated...

    Rgds
    JH

    Hello

    Subtracting two DATEs always results in a NUMBER.
    You can use the NUMTODSINTERVAL function to convert the NUMBER into a string more or less like the results you want:

    NUMTODSINTERVAL (to_date('03.08.2009 08:10:30', 'DD.MM.YYYY HH24:MI:SS') - to_date('03.08.2009 08:06:52', 'DD.MM.YYYY HH24:MI:SS')
                    , 'DAY'
                    )
    

    Using SUBSTR and perhaps other string manipulation functions, turn this into exacltly what you want:

    SELECT  LTRIM ( SUBSTR ( NUMTODSINTERVAL ( TO_DATE ( '03.08.2009 08:10:30'
                                                        , 'DD.MM.YYYY HH24:MI:SS'
                                       ) - TO_DATE ( '03.08.2009 08:06:52'
                                                        , 'DD.MM.YYYY HH24:MI:SS'
                                                )
                                    , 'DAY'
                                    )
                         , 2
                         , 18
                   )
              , '0'
               )     AS hms_dif
    FROM    dual;
    

    Results:

    HMS_DIF
    ---------
     00:03:38
    
  • Date and time incorrect

    Hi all

    Hoping someone can help. Recently fired off vacation and started my 2009 MacBook Pro running 10.10.5 2.53. Start with the time and date the original at the turn of the century and now cannot be reset via system preferences and I can't access my ical or mail.

    Any ideas how I can be able to fix?

    Kind regards

    Toby

    What happens when you try to reset the date and time in system preferences? If it is not defined or is it keep coming back?

    May be a corrupt .plist.

    Make a backup, preferably 2 backups on 2 separate drives.

    Quit the application.

    Go to Finder and select your user folder. With this Finder window as the windshield, select Finder/display/display options for presenting or order - J.  When the display options opens, check "show the library folder. This should make your visible user library folder in your user folder.  Select the library. Then go to Preferences/com.apple.systempreferences.plist.  Move the .plist on your desktop.

    Restart your computer, open the application and test. If it works fine, delete the plist for the office.

    If the application is the same, return the .plist where you got it, crushing the latest.

    Thanks to leonie for certain information contained in this.

  • HTTP Client Error:OpenHandle.vi returns the 1967362015 error code

    Hi all

    In my projects, we use webservice live to access data from a Web service. Here, Labview serves the customer. WebService is only available for the customer's internal network, that's why we usually use the VPN connection to connect to their network and data access. Everything was fine, we can access the webservice from our PC, and also some of the client PC what doesnot require a VPN connection. But only in some of the client PC, when I run the software, I get an error 1967362015 code.

    I did some debugging and found out that ni_httpclient.dll returns the data in form of 1967362015. I have traveled everywhere and cannot find a manual for the dll, so couldn't know why the dll returns these data. -Does anyone know what this error code means? Can someone help me out here?

    Thank you

    Geethu92

    Hi Margot

    The problem has been resolved by phone. Construction of an installer with included dependencies (like LVRTE, Web application server, etc.) is the solution that the error appears only in systems that have not installed in the dependencies.

    Please contact the support of NEITHER.

    Concerning

    Ashish sanogo

    Technical sales engineer

    NEITHER the India

  • How can I return the path of a test step VI in LabVIEW?

    I would create a VI that will return all of the VI paths that are associated with the test steps in a TestStand sequence.  How can I return the path of the VI associated with a test step?  Here is a starting point that will return the first step of the sequence.

    You must convert the Module to a LabVIEWModule (use the variant to the data node), then you can use LabVIEWModule.VIPath.  If you use TestStand 2010, you can call LabVIEWModule.GetVIAbsolutePath to find the VI in the case you are calling with a project.

  • With the help of the mouse click to return the coordinates of the image.

    Okay, so I tried to find a way to do it, and it seems very complicated for something that sounds really simple.

    Anyway. I have a camera that updates an object image on the front panel using a while loop. I have another image object that is updated with a still image when you press the button "snap." Now what I want to do is to click on a point in the image that are broken and have the VI to return the coordinates of this pixel as part of coordinated image.

    What I have so far is a structure of event in the while loop with the following to happen where "image object-> the mouse down:

    Server reference (reference to the image object)-> property (last position of the mouse)-> output coordinated screen node.

    I have two errors that don't make much sense to me (I have not worked with before event structures): ' event data node contains terminal unwired or bad "and"structure of the event one or several cases of event have no defined event. " This second shot seems odd because I don't actually want nothing to take if there is no click of a mouse. The first seems to refer to the box of the element on the left side of the structure of the event.

    Above is my last attmpt to the trouble of sorting and as far as I can see it should work. whatever about the errors, I even take the right approach with that? I would have thought cordinates image would be quite common but seek advice here, it does not seem...

    A bit puzzled here. Any help is very appreciated.

    Hello RoBoTzRaWsUm,

    I took a glance at your VI, who took a correct approach to the data you are looking for.  As you structure to aid and the event, you should look for an event to occur.  When you use a property node, you try to read an attribute of a control.  However, in a Structure of the event, I think you should use a node to invoke.  Allows a node to invoke your read an event or write a method with the control class in LabVIEW.

    1. place down and call the node in the Palette of functions in "Programming"-> "Application Control".

    2 wire your reference Image control to this

    3. click on the method, and then select 'get a last event. "

    4. right click on "Events that" and "create Constant.  Do the constant '1' in the table

    5. read the Cluster "Contact information" from the left side of the case of the event by clicking and "create indicator.

    You will find a piece of code attached example.

    Concerning

Maybe you are looking for