Accomodating date and time in a single Infoobject

Hi Gurus,
We are getting an R/3 field(2 fields) as "YYYY.MM.DD HH:MM:SS". And we have mapped that fields to a Two IO (CHAR).Data is getting loaded fine,but not getting it in the same format (with required DOTS and COLONS).Is there any routine that I can write for this IO.If any one have it ,please pass it on.
The two info objects are : ZCREATE & CHANGEDAT are mapped to "created_at" & "changed_at".
Please tell me step by step code.
Points wil be assured.
No idea on how to write a routine .
Urs,
Rakesh.

Hi,
Currently what format your getting? Please let me know...... so that i can give the correct ABAP code to you...
In my perspective, the time will be loaded properly!!!! because it is standard object... it will take automatically its own format..... (if this also not in your format, let me know)...
I will assume that the time is coming to BW like this : YYYYMMDD.
Then the ZCREATE info object update rule routine is as follows:
DATA : date_only(10) type c.
concatenate COMM_STRUCTURE-ZCREATE+0(4) '.'
            COMM_STRUCTURE-ZCREATE+4(2) '.'
            COMM_STRUCTURE-ZCREATE+5(2)
into date_only.
result = date_only.
Please verify it and let me know!!!!!!!!!!!!!!!!!!!

Similar Messages

  • Accomodating date and time in a single Info object

    Hi Gurus,
    We are getting an R/3 field(2 fields) as "YYYY.MM.DD HH:MM:SS". And we have mapped that fields to a Two IO (CHAR).Data is getting loaded fine,but not getting it in the same format (with required DOTS and COLONS).Is there any routine that I can write for this IO.If any one have it ,please pass it on.
    The two info objects are : ZCREATE & CHANGEDAT are mapped to "created_at" & "changed_at".
    Please tell me step by step code.
    Points wil be assured.
    No idea on how to write a routine .
    Urs,
    Rakesh.

    Hi
    i am getting an error after doing that.
    E:Field "COMM_STRUCTURE-/BIC/ZCREATE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
    Below is my Code.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    data l_ZCREATE LIKE COMM_STRUCTURE-/BIC/ZCREATE.
    data l_ZCREATE1 LIKE COMM_STRUCTURE-/BIC/ZCREATE.
    data : l_year(4) type c,
    l_mon(2) type c,
    l_day(2) type c,
    l_hh(2) type c,
    l_mm(2) type c,
    l_ss(2) type c.
    $$ end of global - insert your declaration only before this line
    $$ begin of routine - insert your code only below this line -
    IF NOT COMM_STRUCTURE-/BIC/ZCREATE IS INITIAL.
    l_/bic/ZCREATE = COMM_STRUCTURE-/BIC/ZCREATE.
    l_year = l_ZCREATE+0(4).
    l_mon = l_ZCREATE+4(2).
    l_day = l_ZCREATE+6(2).
    l_hh = l_ZCREATE+8(2).
    l_mm = l_ZCREATE+10(2).
    l_ss = l_ZCREATE+12(2).
    concatenate l_year '.' l_mon '.' l_day ' ' l_hh ':' l_mm ':' l_ss
    into l_ZCREATE1.
    RESULT = l_ZCREATE1.
    ELSE.
    RESULT = COMM_STRUCTURE-/BIC/ZCREATE.
    ENDIF.
    RETURNCODE = 0.
    Please Correct me where its wrong.
    Urs,
    Rakesh.
    null

  • Getting Date and Time into a single field

    Hi,
    I am loading from a flat file which has field Start time which comes in the format of MM/DD/YYYY  HH:MM:SS ( Hour: Minute: Second). How can i bring this and store this in BW as one single field. Even in the source it is a single field.
    I would also need to use this info object as a key in my ODS
    Please advise,
    Thanks
    Rashmi.
    Edited by: Rashmi Vellampalli on Oct 8, 2008 7:32 PM

    >
    Rashmi Vellampalli wrote:
    > Hi,
    >
    > I am loading from a flat file which has field Start time which comes in the format of MM/DD/YYYY  HH:MM:SS ( Hour: Minute: Second). How can i bring this and store this in BW as one single field. Even in the source it is a single field.
    > I would also need to use this info object as a key in my ODS
    >
    > Please advise,
    >
    > Thanks
    >
    > Rashmi.
    >
    > Edited by: Rashmi Vellampalli on Oct 8, 2008 7:32 PM
    You should user an infoObject/field for tyoe CHAR, length 24. Once you read this, in transfer rules, write an ABAP Code to seperate Data, time and AM, PM. Once you read all the characters from your source, its very simple ABAP to seperate them in Transfer Rules.
    Uday-Ram Chamarthy

  • Date and Time in the flat file

    Hi All,
    I am trying to design a flow which will get data from a flat file. The file has a field which contains both the time and date. How can I handle this in BW? Do I need to creat 2 infoobjects and split the flat file field in start routine or transfer rule? Or is there any stadard infoobject which can hold both the data and time?
    Also, the client asked me if I want a .CSV file or .XLS file. Which one is better for uploading into BW? Any PROS and CONS?
    Best Regards,

    Hi,
    There is no single Data Type which accepts the Date and Time. Other way is to look the data as CHAR. Else the Update Routine/Formula is the Best
    In the Update Rule or Transfer Rule use the Formula
    Let the Info Objects be
    0date
    0Time
    The Transfer Rule/ Update Rule Formulas Be
    0Date --> LEFT( 8, 'DateTime' )
    0Time --> RIGHT(6, 'DateTime')
    Then CSV is the best Option to accept the Data as it is ready for Upload
    Regards
    Happy Tony

  • How to enter a new Date and Time each day in a Numbers Spreadsheet...

    Hi... I have finally decided to move away from Excel and really give Numbers a shot... I have an application where each day I first enter the current date and time into a particular cell of a new row and then I enter some data in cells adjacent (in the same row) as that entered date-time. Then the next day I want to again enter the (new) current date and time and add more data next to that new date-time and so forth day after day... You can't use something as simple as =NOW() because then everyday, ALL of the date-times would change to the current time... Nope, now what I want... I just want to be able to EASILY and QUICKLY enter the current date-time value in one call and then have that specific value stay there forever... In Excel, this is accomplished with the keyboard shortcuts of
    <cntl> followed by a semicolon (;) for the date
    then enter a single space (for separation of date versus time) followed last by
    <command> followed again by a semicolon...
    So all together that is,
    <cntl><;><sp><command><;>
    and that puts something like
    4/10/2010 9:49:00 AM
    in a single cell...
    That's what I now want to be able to do in Numbers...
    How do I do that??? Do I use the menubar item "Insert Date and Time" and if so, how exactly do I get the current time to show up in the chosen cell??? With formatting??? Is there a keyboard shortcut method like the one I mentioned that works for Excel?? I've perused the manual and though I found lots on date-time, I didn't see how to do specifically what I want to do... I likely just missed it as surely it must be easy to do...
    Any feedback would be much appreciated... thanks... bob...

    Badunit wrote:
    The result of running that script is "UI Enabled = TRUE".
    I have cells named by the header values.
    This may be the problem.
    The script is an old one which deciphered only the letter+digit cell references.
    Here is a new version which works with every kind of cell reference.
    --[SCRIPT insertDateTime]
    Enregistrer le script en tant que Script : insertDateTime.scpt
    déplacer l'application créée dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Placez le curseur dans la cellule qui doit recevoir la date_heure
    menu Scripts > Numbers > insertDateTime
    La cellule pointée reçoit la date_heure.
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as a Script : insertDateTime.scpt
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Put the cursor in the cell which must receive the date_time.
    menu Scripts > Numbers > insertDateTime
    The pointed cell receives the current date_time.
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Yvan KOENIG (VALLAURIS, France)
    2009/03/01
    2010/04/11 is now able to treat every kind of cell references
    property theApp : "Numbers"
    --=====
    on run
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    my doYourDuty(colNum1, rowNum1, tName, sName, dName)
    end run
    --=====
    on doYourDuty(c, r, t, s, d) (*
    c = columnIndex
    r = rowIndex
    t = table's name
    s = sheet's name
    d = document's name *)
    local cdt
    set cdt to my cleanThisDate(current date) (* the new date_time as a clean date_time *)
    tell application "Numbers" to tell document d to tell sheet s to tell table t
    set value of cell r of column c to cdt as text
    end tell -- application …
    end doYourDuty
    --=====
    on cleanThisDate(dt)
    (* ugly code but once I got date_time with milliseconds so if necessary, I drop them *)
    local l
    set l to my decoupe(dt as text, ":")
    if (count of l) > 3 then set dt to date (my recolle(items 1 thru 3 of l, ":"))
    return dt
    end cleanThisDate
    --=====
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
    end if
    return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
    apply to named row or named column !
    on decipher(n, d, s, t)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    It's available on my idisk :
    <http://public.me.com/koenigyvan>
    Download :
    For_iWork:iWork '09:for_Numbers09:insertDateTime.zip
    Yvan KOENIG (VALLAURIS, France) dimanche 11 avril 2010 14:16:41

  • CRYSTAL REPORT GRAPH WITH DATE AND TIME

    Post Author: Dino Dentone
    CA Forum: Charts and Graphs
    Dear forum,
    I am developing a Visual Studio .net 2005 Windows Form,i have a sql table with 2 field:1) DATA (date and time)2) Temperatura (numeric)I have to make a line graph with numeric data axes.I have insert two parameters' to customize the filtering, so i can have a graph of the temperature between to date and time.If i choose two date's and time (parameters) like 20/04/2008 00:00:00 trought 20/05/2008 00:00:00 i have no problemBut if a choose a range minor of 1 day (some hours like from 15/05/2008 00:00:00 trought 15/05/2008 08:00:00) i have no graph.It sound like it don't use the time values?Thank's for the Help.

    There is some debugging info on the website. I've had problems getting the text to work. It was generally that I installed either the wrong 'version' of ImageMagick (the recommended one works for me--I'm running Vista x64 and one time installed the x64 version and it didn't work). I also installed Ghostscript to get the font list to work correctly. At one time I installed the x64 version of Ghostscript and it didn't work with the plug-in, either.
    I installed two items:
    ImageMagick: ImageMagick-6.4.9-3-Q16-windows-dll.exe
    Ghostscript: gs863w32.exe
    I don't know if it is necessary but I also added the fonts from
    ghostscript-fonts-std-8.11.tar.gz to the c:\Program Files (x86)\gs\fonts directory. Some, none, perhaps all, may already be installed just by installing ghostscript--it has been so long that I don't remember exactly. I do know that the contents of the gs fonts directory contains all the files in the .gz, I just don't remember if I put them there separately or as part of the gs install :)
    You need to make sure the font size is large enough. I usually use about 2-4% of height and export a single photo to make sure I see the text correctly.
    Tim does respond to email when he can so if you can't get it to work you can always drop him a line.

  • Formatting Date and Time in Smartforms.

    Hello,
    I'm a newbie and I'm working with smartforms.
    My requirement is to get the following format of date and time in a text within a template.
    'MMM DD HH:MM'
    Like : Jan 01 12:45
    I have tried SAPScript Commands like 'SET DATE MASK' but that doesn't appear to work.
    Do I have to use a Function Module?
    Please help out. A sample code will be appreciated!
    Regards & Thanks,
    Arun G Nair

    Hi,
    please see this code
    DATA: V_DATE1 TYPE STRING
    SELECT SINGLE LTX FROM T247
       INTO MONTH_NAME
       WHERE SPRAS = SY-LANGU
       AND MNR = SY-DATUM+4(2).
    CONCATENATE MONTH_NAME  SY-DATUM+6(2)  DATE1(4)
        INTO V_DATE1 SEPARATED BY SPACE.

  • How to show Date and Time with TimeZone

    Dear All,
    I have to show Date and Time with TimeZone abbreviation,
    for example:
    1) 31 March 2011 2:30 in india standard time - it should show in screen 31 March 2011 2:30 IST.
    2) 31 March 2011 2:30 in Australia/New Zealand - Eastern time zone it should show in screen 31 March 2011 2:30 AEST.
    how can i show *Australia/New Zealand - Eastern time zone to AEST*,
    I tried with format DD MMM YYYY HH:MM zzz, and i looked time zone API too.
    Appreciate your help
    Thanks
    Daya

    Dayananda wrote:
    ok, than i have to use zzzz format, as z won't help in my case, so i have to use zzzz which display descriptive value like, Indian Standard Time i.e. ISTPer the javadocs there is a very specific reason why that is a problem especially if you intend to support many timezones in one application.
    "+For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them+."
    Thus you have one single case where there can be many and moreover it can change (twice a year I believe.)
    There is a standard source for this information although when I tried it it appears to not work.
    If the app only needs to display one zone then provide a configuration value that allows a user to overload the display value.
    If the app needs to display many values then you MUST inform business users of the problem because there are duplicates and they, not you, need to decide specifically what happens in those cases.

  • Date and time formatting not responding

    I'm trying to total a column based on a date or date window.  My formula looks like this.
    SUMIF(Date,B1,'$')
    I have 2 tables.  The table with the formula references the other table, and compares Date in table 1 to B1 in table 2.  B1 is a date I enter to see a specific total for that day only.  It only works if all the times of the date window are 12:00:00 AM.  , and the B1 times are the same ..... Even though times are unimportant to the totals I need, and both are formatted to "none" and do. It show.
    So, how do I total a specific date with various times, but all the same date?  I have a sample file if it will make more sense to see it.
    Not that it matters, but I am doing this on an iPad, but the formula still did not respond correctly on Mavericks either.  Unless I set all times equal to B1.
    Sorry if I didn't explain very well.  I'm new at this formula thing. 
    Thanks
    Jeff

    Hi Jeff,
    The entered date in B1 will have it's time part set to 00:00:00 (midnight, at the beginning of that date). To use SUMIF to filter the date and time values in Table 1, you would need to write a single condition that would accept all date and time values falling on the date in BI, and reject all date and time values falling on days before or after that date.
    SUMIFS allows you to specify multiple conditions, all of which must be met to acept a test value and add its associated sum value to the total. Here's an example:
    The formula in B1 of Table 2 is shown below:
    B2: =SUMIFS(Table 1 :: B,Table 1 :: $A,">="&B1,Table 1 :: $A,"<"&(B1+1))
    Syntax: =SUMIFS(sum-values,test-values,condition,test-values,ˆcondition)
    Regards,
    Barry

  • Credit block and release Date and time

    Dear All,
    I require a report which can display credit block status date and time and  credit release status date and time for sales order. I have gone through the report RSSCD100 with object class VERKBELEG.It is not fullfilling the requirement as it only display change information.
    If customer has already exceeded the credit limit and new sales order has been generated then this report will reflect its blocked status.
    Kinldy help
    Thank you,
    NoMi

    Hi,
    IF it is not mentioned in single program .
    You can develop a query by using multiple program. Please find the list of programs for CM
    +Reports for Credit Management+
    The following table provides an overview of all the reports available to you in the area of credit
    management
    Program Function
    RFDKLI10 Customers with missing credit data
    This report checks the data for the credit limit for completeness, and produces
    the corresponding error lists. These can be used to re-maintain the
    corresponding definitions manually, or per Batch Input.
    RFDKLI20 Reorganization of credit limit for customers
    This report enables you to reorganize the credit limit information in the control
    areas.
    RFDKLI30 Short overview credit limit
    The report lists the central and control area-related data per customer.
    RFDKLI40 Overview credit limit
    The report provides you with an extensive overview of the customeru2019s credit
    situation.
    RFDKLI41 Credit master sheet
    The credit master sheet enables you to display and print out the customer
    master data for a single account, which is needed for the area of credit
    management.
    RFDKLI42 Early warning list
    The early warning list enables you to display and print out customers in credit
    management, who are viewed as critical customers in the area of credit checks
    in SD.
    RFDKLI43 Master data list
    The master data list enables you to display and print out customersu2019 credit cards.
    In particular, you can display information not contained in the standard system,
    for example, user-defined fields or external data, which you have created with
    specific additonal software.
    RFDKLI50 Mass change credit limit data
    This report allows quick mass change for master data in credit management.
    RFDKLIAB Change display, credit management
    With this report, you can display changes for credit management master data for
    all accounts.
    RVKRED06 Checking blocked credit documents
    The report checks all blocked documents from credit view. The report is started
    in the background, and should run after the incoming payments programs.
    FI/SD - Credit Management/Risk Management SAP AG
    Reports for Credit Management
    RVKRED77 Reorganization credit data SD
    The report enables you to reorganize open credit, delivery and billing document
    values. It is used, for example, when updating errors occur.
    RVKRED08 Checking sales documents which reach the credit horizon
    The report checks all sales documents, which reach the dynamic credit check
    horizon, as new. The report runs periodically, and should run at the start of a
    period. The period for the u2018date of the next credit checku2019 is proposed from the
    current date, with the help of the period split for open sales order values.
    RVKRED09 Checking the credit documents from credit view
    Released documents are only checked if the validity period for the release has
    run out (number days).
    RVKRED88 Simulation reorganization credit data SD
    REgards,
    Krishna O
    Edited by: Krishna O on May 20, 2010 11:30 AM

  • Function Module to get Date and Time out of Timestamp

    Hi,
    Source system timestamp field CREATED_TS of Type DEC-15
    BW PSA data in format 20.140.707.105.948
    In DSO, I have created two target InfoObjects; one for Date and one for Time.
    In transformation from PSA to DSO, in field level routine, I want to split timestamp into Date and Time.
    There is a function module CACS_TIMESTAMP_GET_DATE in source system but it is not available in BW. Another function module ADDR_CONVERT_TIMESTAMP_TO_DATE which is available in BW but returns only Date. 
    Does anyone know a function module in BW which takes Timestamp (PSA data in format 20.140.707.105.948) and returns Date and Time.
    Much better would be a FM which take timestamp and also Timezone  and returns Date and Time.
    Thanks
    Ahmad

    Timestamp to date time conversion (with time zone) is built into ABAP. Why use a function module?
    Read the ABAP help on CONVERT.

  • Date and time of appointment to light. How can I make them darker?

    I find the date and time of the appointments show in a light grey color which I find hard to see. How can I make the date show in a darker color?    

    Finally gotten the hang of editing < </div>
    Cool. I've been at this for more than 30 years, I still learn stuff every single day.
    and now we are trying to improve the speed with which out video clips play on the web. I would love them to load as quickly as the large movie trailers on the apple site. I have experimented with the export settings and gotten them a bit better but not they are still not loading as quickly as the Apple ones. Any ideas? < </div>
    Get yourself two or more of the very intensely geeky books on streaming media. In this case, though, it's got nothing to do with your export or compression/encoding settings. It's all about how rapidly your server can send the file into the Internet when it called.
    bogiesan

  • Date and Time Issue.

    I have date and time with different format , Need in Single date and Time format.
    Input
    13/03/15 09:09
    13/03/15 07:39
    13/03/15 08:09
    13/03/15 08:51
    3/13/15 09:39:14 AM
    3/13/15 09:38:14 AM
    3/13/15 09:37:59 AM
    3/13/2015 09:37:59 AM
    Problem with the below Output
    01/01/01 12:00 AM
    01/01/01 12:00 AM
    01/01/01 12:00 AM
    01/01/01 12:00 AM
    13/03/15 09:39 AM
    13/03/15 09:38 AM
    Output required in the below format for all of the above date and Time with proper date & time
    13/03/15 09:39 AM

    Indudhar,
    I don't know if the following will help or not, but hopefully you can see what I'm doing and modify it to give you the string format of the DateTime the way you want it:
    ption Strict On
    Option Explicit On
    Option Infer Off
    Public Class Form1
    Public Enum DateTimeFormat
    LongDateLongTime
    LongDateShortTime
    ShortDateLongTime
    ShortDateShortTime
    LongDateOnly
    ShortDateOnly
    LongTimeOnly
    ShortTimeOnly
    End Enum
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    ' Test it here...
    Stop
    End Sub
    Private Function GetFormattedDateTimeString(ByVal dt As DateTime, _
    ByVal formatType As DateTimeFormat) As String
    Select Case formatType
    Case DateTimeFormat.LongDateLongTime
    Return String.Format("{0} {1}", _
    dt.ToLongDateString, _
    dt.ToLongTimeString)
    Case DateTimeFormat.LongDateOnly
    Return dt.ToLongDateString
    Case DateTimeFormat.LongDateShortTime
    Return String.Format("{0} {1}", _
    dt.ToLongDateString, _
    dt.ToShortTimeString)
    Case DateTimeFormat.LongTimeOnly
    Return dt.ToLongTimeString
    Case DateTimeFormat.ShortDateLongTime
    Return String.Format("{0} {1}", _
    dt.ToShortDateString, _
    dt.ToLongTimeString)
    Case DateTimeFormat.ShortDateOnly
    Return dt.ToShortDateString
    Case DateTimeFormat.ShortDateShortTime
    Return String.Format("{0} {1}", _
    dt.ToShortDateString, _
    dt.ToShortTimeString)
    Case DateTimeFormat.ShortTimeOnly
    Return dt.ToShortTimeString
    Case Else
    Return String.Empty
    End Select
    End Function
    End Class
    I hope that helps. :)
    Still lost in code, just at a little higher level.
    No Frank, Same Problem.....Kindly help me  X1 = 14/03/15 19:30
    I need time Diff of now and X1
    Dim myDateTime As DateTime = GetFormattedDateTimeString(X1, DateTimeFormat.ShortDateOnly)
    myDate = myDateTime.ToString("dd/MM/yy")
    myTime = myDateTime.ToString("hh:mm tt")
    Dim myDateTime1 As DateTime = Now
    Dim myDate1 = myDateTime1.ToString("dd/MM/yy")
    Dim myTime1 = myDateTime1.ToString("hh:mm tt")
    Dim diff As TimeSpan = myDateTime1.TimeOfDay - myDateTime.TimeOfDay
    Dim diffString As String = String.Format("{0:00}:{1:00}:{2:00}", _
    Math.Abs(diff.Hours), Math.Abs(diff.Minutes), Math.Abs(diff.Seconds))

  • Setting/changing and using date and time for an alarm.

    While I know how to get the time I'm not sure how to somehow allow the user of the app to change it, save it and then use both the date and time to set off an alarm.
    While this can be easily done using forms my application is purely canvas based so none of that easy to use stuff, I'd have to print the time on the screen then allow the user to change that time, repaint the numbers again while also changing it in system, save the time and date to memory then use it set off an alarm.
    If anyone can link to some good, simple tutorials or explain themselves it'd be appreciated, thanks.

    This may be possible, but it may need a script to launch with firefox...so this may be a skeleton answer.
    A couple of brianstorms to achieve this
    *Cronzilla add on might be helpful [https://addons.mozilla.org/en-US/firefox/addon/cronzilla/]
    *Saved sso login might be in the about:config file page:
    [http://superuser.com/questions/664656/how-to-configure-firefox-for-ntlm-sso-single-sign-on] "securtiy ask for password"
    * you may need to add to the security exceptions the sso login page
    Two things we can do, file a bug to add this to the launch arguments, and find a meantime work around which stackoverflow.com would be a great place to ask this question.

  • CONCATENATE date and time into a text variable

    Hi ABAP Gurus,
      I would like to retrieve current system date and time and concatenate into a variable. I would really appreciate if someone could help me. I have the following code and i seem to get some kind of error.
    I would like my output to be like:
         "22.JUN.2006  Some Text  12:30:22"
    Code:
    data:  emtext     like TEMSG-EMTEXT.
    data:  date_output(50)  TYPE C.
        CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
           EXPORTING
               INPUT          =  SY-DATUM
           IMPORTING
                OUTPUT        =  date_output.
    SHIFT date_output RIGHT DELETING TRAILING SPACE.
      CONCATENATE date_output ': Some Custom Message '
       INTO emtext.
      Also, is there a function to convert time to text or conversion is not necessary?
    Thanks.
    Regards,
    bw_newbie

    Here is something a little closer to your requirement.
    report zrich_0001 .
    data: date(20) type c,
          time(10) type c,
          str type string.
    data: xT247 type T247.
    select Single * into xt247 from t247
              where MNR = sy-datum+4(2).
    concatenate  sy-datum+6(2) xt247-ktx sy-datum(4)
              INTO date separated by '.'.
    write sy-uzeit to time.
    concatenate date 'SomeText' time into str separated by space.
    write:/ str.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Problem in XML Data Source

    Hi  Friends, Req : We need to push data from XML to BW System - 3.5 BW I went through all steps of "HOW to Push data to XML" document. I kept my XML file on Desktop When I perform "Send Recordset" no response from system my data is not seen in delta

  • An Immediate Window in JDeveloper

    Dear All, I'd like to mention that I came from using Microsoft Tools and Microsoft Products has some sort of Immediate Window where you can type something and see the result during debugging. Instead of coding it and rerunning the code, you can use o

  • User Only Able To Reply Via eMail

    Hi Adobe Admin: There's a user who started a thread over on the Photoshop Windows forum, but can't seem to get back into the web-based forum interface.  He claims his login hangs up no matter what browser he uses.  He can't create a new thread here f

  • Mac Pro has started crashing

    Hello!  My wifes' Mac Pro has begun to crash regularly, and it seems more frequently as well.  Here are its' charachteristics:   Model Name:    Mac Pro   Model Identifier:    MacPro1,1   Processor Name:    Dual-Core Intel Xeon   Processor Speed:    2

  • VWLC Problem

    I'm facing a problem on vWLC. I configured the vWLC and Aironet 1252, I created 2 SSID with below settings. 1. WPA2 Auth 802.1X 2. Web-Auth Inside Wireless, I configured this AP Mode as "Local", but all of the clien device such as iPhone, Laptop can'