Coctenate a date and a time to achieve a Timestamp object

Hi
I'm trying to build a timestamp object in our universe. I have a LastRunDate column in the form 2011-02-14 00:00:00.000 and a LastRunTime column in the form 16:40:44 (hh:mm:ss).
Now, I need to make one timestamp out of this, for the example above it would be, 2011-02-14 16:40:44.000.
So, I am thinking I need to do a replace/concatenate to achieve this?
Am I on the right lines?
The data is in SQL server.
Thanks
Eddie

Hi Mark
Both of these worked, many thanks.
In the db, LastRunDate is defined as Datetime and LastRunTime as char(8).
After concatenation the object only displayed the date, not the remainder of the timestamp but it was simply a matter of 'format number' in webi/infoview to be date/time.
Much appreciated
Eddie

Similar Messages

  • Keyboard shortcuts: current day and date, and current time?

    I would like to know keyboard shortcuts for entering current day and date, and current time (separated entries) in Numbers. Something that Excel does easily. Thank you, Ian

    Ian,
    Numbers does not have predefined key command for Insert Date & Time as you can see from this screenshot:
    All menus show the key commands on the very right (if there is a ke command).  You can add you own, custom, key commands by opening system preferences and selecting the Keyboard panel, then the "Keyboard Shortcuts" segment:
    Click the "+" then a modal dialog will appear.   Select the application from the pop, then enter the exact name if the menu item, and, finally, your desired key combination:
    You can do this for any application

  • BAPI for changing delivery date and delivery time fields in LIKP table

    Hi All,
         Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
    Please tell me experts if exists.
    Thank you,
    Raghu.

    try these:
    BAPI/FM to update LIKP and VTTK tables
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800

  • Conversion failed when converting date and/or time from character string

    Hi experts,
    I'm trying running a query in Microsoft Query but it gives the following error message:
    "conversion failed when converting date and/or time from character string"
    when asks me the data I'm inserting 31-01-2014
    i've copy the query form the forum:
    SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
         CASE  WHEN T0.TransType=13 THEN 'Invoice'
              WHEN T0.TransType=14 THEN 'Credit Note'
              WHEN T0.TransType=30 THEN 'Journal'
              WHEN T0.TransType=24 THEN 'Receipt'
              END AS 'Document Type',
         T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
    FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
    ORDER BY T1.CardCode, T0.DueDate, T0.Ref1

    Hi,
    The above error appears due to date format is differnt from SAP query generator and SQL server.
    So you need convert all date in above query to SQL server required format.
    Try to convert..let me know if not possible.
    Thanks & Regards,
    Nagarajan

  • Error "Conversion failed when converting date and/or time from character string" to execute one query in sql 2008 r2, run ok in 2005.

    I have  a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
    USE [Runtime]
    GO
    /****** Object:  UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt]    Script Date: 06/11/2013 08:47:47 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE   FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)  
    -- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
    RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
    AS  
    BEGIN 
    -- Crea el Cursor
    DECLARE cursorHora CURSOR
    READ_ONLY
    FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
    -- Declaracion de variables locales
    DECLARE @produc_opt_hora int
    DECLARE @produc_opt_parc int
    DECLARE @nsacos int
    DECLARE @time_parc datetime
    -- Inicializamos VARIABLES
    SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
    -- Abre y se crea el conjunto del cursor
    OPEN cursorHora
    -- Comenzamos los calculos 
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    /************  BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR  ************/
    WHILE (@@fetch_status <> -1)
    BEGIN
    IF (@@fetch_status = -2)
    BEGIN
    -- Terminamos la ejecucion 
    BREAK
    END
    -- REALIZAMOS CÁLCULOS
    SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
    -- INSERTAMOS VALORES EN LA TABLA
    INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
    -- Avanzamos el cursor
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    END
    /************  FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR  ***************/
    -- Cerramos el cursor
    CLOSE cursorHora
    -- Liberamos  los cursores
    DEALLOCATE cursorHora
    RETURN 
    END

    You can search the forums for that error message and find previous discussions - they all boil down to the same problem.  Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime.  In general,
    this works in any version of sql server if the runtime settings are correct for the format of the string data.  The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
    the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers. 
    I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion.  It may not be in the function you posted, since that function also executes other functions. 
    You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all. 
    Tibor's site

  • SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.  'Received Alerts' (OAIB)

    SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.  'Received Alerts' (OAIB)
    SELECT    
    CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
    WHEN T0.DocStatus = 'C' THEN 'CLOSED'  END  AS 'Document Status',
    T0.DocDate AS 'Posting Date',
    T0.DocNum AS 'Doc.No',
    T0.NumAtCard,
    T0.TransId AS 'Trans. No.',
    T0.Comments AS 'Remarks',
    T0.CardCode AS 'Offset Acct',
    T0.CardName AS 'Offset Acct Name',
    sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
    T3.DueDate AS 'Cheque Date',
    T3.CheckSum AS 'Amount'
    FROM         ODPO AS T0 LEFT OUTER JOIN
                          VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
         OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
                          VPM1 AS T3 ON T2.DocEntry = T3.DocNum
    where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'

    Hi,
    Try this:
    SELECT   
    CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
    WHEN T0.DocStatus = 'C' THEN 'CLOSED'  END  AS 'Document Status',
    T0.DocDate AS 'Posting Date',
    T0.DocNum AS 'Doc.No',
    T0.NumAtCard,
    T0.TransId AS 'Trans. No.',
    T0.Comments AS 'Remarks',
    T0.CardCode AS 'Offset Acct',
    T0.CardName AS 'Offset Acct Name',
    sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
    T3.DueDate AS 'Cheque Date',
    T3.CheckSum AS 'Amount'
    FROM         ODPO  T0 LEFT OUTER JOIN
                          VPM2  T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
    LEFT OUTER JOIN
         OVPM  T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
                          VPM1  T3 ON T2.DocEntry = T3.DocNum
    where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
    group by T0.DocStatus,T0.DocDate ,
    T0.DocNum ,
    T0.NumAtCard,
    T0.TransId ,
    T0.Comments ,
    T0.CardCode,
    T0.CardName ,
    T0.WTSum ,
    T3.DueDate ,
    T3.CheckSum
    Thanks & Regards,
    Nagarajan

  • Last Logon date and Logon time not updating in table USR02

    Hi,
    Please help us on this. After customer successfully logged in the webshop, we are checking the table USR02 in CRM system and the Logon date and Logon time is not updated. Because of this, the customer will be locked after certain number of days. When we check it in ECC system, customer's last logon date and time is updated. Can you tell us what could be causing this? Any advise what we need to check? Thanks in advance!
    Regards,
    Mike

    Hi
    1. Please check if the USAPPLREF table in ECC has the correct mapping done between the LOGON User and the Sold-to party (Customer)
    2. Please check the validity of those user in SU01 user data.
    3. Please check the USERS data from the USERADMIN Link (if it is configured in your scenario through XCM settings for USERS)
    Hope this will help.
    Regards

  • The date and the time of printed of purchase order

    Hi,
    Wich field can me watch the date and the time of printing document like purchase order
    Thanks in advance

    Dear,
    CreateDate:Print date in OPOR
    DocTime is Print Time in OPOR

  • Changing date and/or time of photos

    I often change the time of individual iPhoto pictures to change their order in the photo Library.
    I change the date and or time in the information section. I have iPhoto sort the photos by date.
    I just imported about 1200 photos from a DVD and want to change the order of some of them, but when I change the time, the new time stays there, but the photo either does not move or moves to the incorrect place. I have closed and reopened iPhoto and even restarted the computer.
    I would appreciate any help or suggestions.
    Thanks in advance.

    Try using the Photo menu ==> batch change date and time (if the photos either do not have a data and time or they are not in the date time sequence you want or the adjust date and time (if you want to add a constant amount to all photos selected keeping them in the same date/time sequence but with a different date and time - and select the change the original option
    LN

  • Why does my iPod say Connot connect to the iTunes store when my iPod is up to date and the time zone is okay

    why does my iPod say Connot connect to itunes store, when my iPod is up to date and my time zone is okay?

    Hey Hiika,
    Do not forget to check the Date and Time and make sure that it is set to Automatically. Check out the article below to troubleshoot your issue further.
    Can't connect to the iTunes Store
    http://support.apple.com/en-us/HT201400
    Take care,
    -Norm G. 

  • What do the dates and the times on the data sheet mean?

    what does the dates and the times on the data sheet mean?

        marcus19541
    We definitely want to make sure that your data usage reporting is clear so you can monitor everything clearly! The timestamps that appear when viewing your data usage details on My Verizon may not be the exact time that data was completely used. The corresponding usage and time reflect usage from between the last report and the one you're reviewing.
    For example, say there was a report for 312MB at 2AM and the report right before that was for 100MB at 6PM. The 312MB were used between the 6PM report and the 2AM of it's own time stamp.
    Please let us know if you have any further questions about your data usage!
    RuthW_VZW
    Follow us on twitter @VZWSupport

  • How to create a type of 'alarm event' based on acquired sensor data and system time?

    Hello all,
    I'm fairly new to LabVIEW and have successfully created a VI that reads voltage data from sensors.  Each sensor outputs 2 voltage values and I treat these values as 2 different DBL values.  I'd like to be able to record each voltage value as a base and then compare the subsequent data readings with that base.  Once the base is determined, I'd like a sort of 'variable' set as "TIME" to be recorded at the moment the base voltage is recorded.
    The alarm should occur (or anything Boolean set to TRUE I guess) once the continuously read voltage remains within certain limits for about 2 hours.  I know I can compare the system time w/ the "TIME" that the voltage base value was recorded.  If the voltage readings escape those limits, I'd like the voltage base value reset and the TIME set to the corresponding system time again.
    I apologize in advance if this I haven't' described my problem well, but if anyone could help me figure out the best way to create this code, I would appreciate it much!
    Thanks!
    Solved!
    Go to Solution.

    ill try to illustrate a couple scenarios:
    keep in mind that i dont necessarily want the voltages in these specific ranges, but just a range of +/- 20 mV ... in an above post i refer to a "base" voltage reading, in this case that would be 200 mV for V1 and 400 mV for V2, just because the voltage has shifted to those values for an extended amount of time each (> 2 seconds)
    Scenario 1
    1:00 pm
    Sensor readings
    Voltage 1: 200 mV
    Voltage 2: 400 mV
    between 1:00 and 3:00 pm:
    Voltage 1 does not deviate from 180-220 mV range
    Voltage 2 does not deviate from 380-420 mV range
    at 3:00pm I want an alert/alarm/Boolean to change to 'true'
    Scenario 2
    1:00 pm
    Sensor readings
    Voltage 1: 200 mV
    Voltage 2: 400 mV
    at 1:45 pm:
    Voltage 1: 2 mV
    Voltage 2: 600 mV
    Since the voltage has shifted out of the range, i want the new base voltage to equal whatever it changed to out of the range, and also the time spent within the new range (2 +/- 20 mV and 600 +/- 20 mV, respectively for V1 and V2) would be reset, so a new 2-hour counter would begin

  • I'm on an iphone that is no longer connected to the network, using it as an ipod touch. I can't download apps, however... it tells me that there is no secure connection and to update the date and the time. I'm not on a public network though...

    I am using an old iPhone 3 as an iPod touch. It's no longer connected to a network. I am trying to download apps while using a secure internet connection, however, it's not allowing me to do so. The message is gives is: "Cannot Connect to the Store" A secure connection could not be established. Please check your date and time settings."  I'm confused as to how I can fix this. The time seems to be correct, and I'm not using public internet.... Any suggestions??

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Promised Date Calculation based on Need by Date and Transit Time

    Hi,
    I have created PO with NBD as D25 (Day 25) and approved it. This means that i need the goods to be at my premisis by D25.
    Now the requirement is
    Promised date in my PO should be calculated to D25 - Transit Time. So that supplier will be notified D25-Transit time.
    Or Is there any workaround to overcome this.
    Thanks,
    Jey

    Jey-SCMFG wrote:
    Hi,
    I have created PO with NBD as D25 (Day 25) and approved it. This means that i need the goods to be at my premisis by D25.
    Now the requirement is
    Promised date in my PO should be calculated to D25 - Transit Time. So that supplier will be notified D25-Transit time.
    Or Is there any workaround to overcome this.
    Thanks,
    JeyHi Jey,
    Where you are capturing your lead time. You can do it in item master.
    Once it is there, write a personalization to calculate the promised date and update the field.
    Thanks,
    PS.

  • Adding a date and a time to create one channel in a data plugin

    I would like to preface this question with the fact that I am new to VBS programming.  What I want to do is create a plugin. Most of it is done but I am having a problem with adding two times to make one.  I have a text file that stores the date and time separated by a tab.  This file format was design for excel.  When I bring it in both the date and time are in different channels and I can't figure out a way to add the two and either replace one of them or even place it into a separate variable.  Below is an example. 
    Chan(1) contains the date, Chan (2) contains the time.  This statement that places the data into the channel is:     
    Set StandChannels(0).Values(k) = Chan(1).Values(i)
    I have tried:
    Set StandChannels(0).Values(k) = Chan(1).Values(i)+Chan(2).Values(i)
    error: Object doesn't support this property or method
    or
    Chan(1).Values(i) = Chan(1).Values(i)+Chan(2).Values(i)
    error: Object doesn't support this property or method
    I have tried many other iterations and have not had any success.  This seems to be an easy task I am probably missing something simple.
    Solved!
    Go to Solution.

    Chris and Brad,
    Sorry I didn't respond sooner.  I tried the suggestion on the code and it made sense seeing it but I could not get it to work within the code.  I am enclosing the code and the file.  I would like to explain that the plugin is currently design to accept two different file versions.  I have sent you the newer file version.  I received an initial plugin from a coworker that I believe came from NI and which accounts for the frame work and I modified it a great deal to get it to this point.  I appreciate your help; it has been somewhat frustrating not completely understanding the different types of channels, how to access the information needed, and finding examples of what I wanted done.
    Elias
    Attachments:
    MSN#19 Mon, Oct 18, 2010 1-29 PM_NI Version.log ‏11 KB
    log_data_plugin_101510.txt ‏48 KB

Maybe you are looking for

  • XSLT vs. Java

    I'm doing a project of converting XML from one format to another. The conversion is very complex. It contains hundreds of complex conversion rules and many calculations. Should I do it with XSLT or with Java? (Using the Java XML parsers) What are the

  • Maintenance Cycle creation not possible

    Hello Developers, (Solman 4.0 ChaRM) I'm running into an issue concerning our maintenance project. I created a maintenance project, assigned systems and users to it, created an IMG, saved everything, but if I try to create a maintenance cycle via "/n

  • QMaster doesn't run automatically?

    Trying to figure this out... this just started a little while ago where I would have to seemingly run QMaster manually before compressing; otherwise, I would get "Unable to connect to background process"... it wasn't always this way, how do I get Qma

  • Live Stream Stuttering (Bet365 etc)

    Hi, I've noticed when I watch certain live streams they stutter badly and are unwatchable as a result. It happens on both my PC and laptop so it's not an issue with flash player etc. I also tried the same streams at a friend's who is with Sky and the

  • HT4790 My computer has stopped working after I tried to turn of encrytion

    Oh dear must have totally stuff up....I thought I turn on my firewall and there was encryption I must have turn on. Then my computer turn restarted and everything slowed down... I thought must have been because I turned the firewall on so I tried tur