Format Date for time.

i have a doubt as to how to store the date along with time from my front-end Forms Developer Suite 9i application.
I am trying to give this kind of statement from SQL-plus:-
update login_master set last_accessed=to_Char(sysdate,'dd-mon-yy HH:mi:ss')
     where login_ID = :GLOBAL.LOGIN_ID
but, there is a message which comes like this:-
ORA-01830 date format picture ends before converting string.
Also, i want to compare this time stored against time a little later, say after 1 or 2 hrs to get number of minutes.
How can i do this? I hope, my question is clear. Please help in solving the doubt.
regards.

This topic is a duplicate of this one:
<p>Format Date for time
<p>Please reply on the other thread.

Similar Messages

  • Convert XML string into an abap format date and time

    Hi,
    Does anyone know of a method or a function module in ABAP which converts XML string into an abap format date and time.
    Here is a part of the xml that I want to convert.
    <ns2:EventDateTime>2009-07-02T10:13:45+10:00</ns2:EventDateTime>
    <ns2:EventMessageTransmissionDateTime>2009-07-02T10:13:45.987+10:00</ns2:EventMessageTransmissionDateTime>
    Currently EventDateTime and EventMessageTransmissionDateTime are type XSDDATETIME_Z and these are converted to proper dates and times. We will be changing these fields to a STRING instead of XSDDATETIME_Z. The reason for this is to make the field more versatile. The customer would be receiving dates with Zulu (2009-09-23T12:00:00Z), with offsets (2009-09-23T12:00:00+10:00/-10:00) and just local timestamp (2009-09-23T12:00:00). With this, we need to make the date fields as string
    to be able to accept the various date formats (esp. the local timestamp).
    I am looking for a standard function module or method that will convert the xml string to a proper date and time abap format.
    Would appreciate anyone's help!
    Thanks.
    Edited by: eunice ocson on Jul 13, 2009 1:49 AM
    Edited by: eunice ocson on Jul 13, 2009 1:50 AM
    Edited by: eunice ocson on Jul 13, 2009 1:51 AM
    Edited by: eunice ocson on Jul 13, 2009 1:51 AM

    Hi Eunice
    Use the FM 'SMUM_XML_PARSE'
    for more info
    [Convert XML string to ABAP|XML String to ABAP or GUI]
    hope it helps you.
    Thanks!!

  • How do i format date and time in SSRS 2008

    Okay, so i am working with SSRS 2008. I am formatting the date and time. Right now the current out put is 1/13/2014 8:02:11 AM. I want the output to
    be 1/13/14 8:02 AM. What is the expression for this? 
    Thanks in advance

    There are 2 functions that can be used, Format and FormatDateTime.
    http://www.jackdonnell.com/?p=122
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • How to format data for a custom group

    Hi all
    I have a pivot table with Actual and Budget as columns and some accounts in the rows. Since I'm using the account hierarchical column, I created custom groups for the accounts using the Selection steps pane. For example, I created a new group called Profit to combine 3 different Profit accounts and display one Profit line.
    Now I want to format the data for the Profit group. I right-click on the Profit group, choose to edit the group and click on the Format button on the bottom left corner. I add some formatting, e.g. borders. When I now view the pivot table, borders have been applied to the label of the group - so the word Profit is now bordered. However, the values in the Actual and Budget columns do not have a border. Don't know what I'm missing, but I want both the group label and the values to be formatted the same way.
    How can I apply formatting to the data/values for the custom group?

    Yeah tried that already, it formats the entire column whereas I need just the values for the Profit row to be formatted. Seems it is a limitation only when using custom groups?

  • 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.

  • Z10 Voice Control speaks in US-format date for Uk date

    Issue: UK format date 02/08/13 is "said" by Voice Control as "2nd August" - the date is in the calendar correctly as 8th Feb.
    Steps to repeat the issue: "Schedule new appointment" using the Voice Control and add an appointment today (8th Feb 2013) - correctly added to the Calendar but the voice confirmation says "2nd August".

    Hey dpjf,
    Welcome to the BlackBerry® Support Community Forums.
    To better assist you I have a couple questions:
    When you go to Settings> Voice control> Is the Language set to English UK?
    Go into Settings> Language and Input> What is the Display Language and Region set to?
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Localdefinitions.xml and format date for Calendar Prompt

    HI!
    1. I change in localdefinitions.xml all dateformats for my locale
    2. I restarted my BI
    3. no effects
    why?

    yes, I restarted presentation server and oc4j.
    but has no effects.
    date prompt has strange behaviour...
    for Administrator user
    in English locale
    default format YYYY-MM-DD
    after change date by calendar, it has M.D.YYYY format
    in my locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format
    for other users
    in English locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format
    in my locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format

  • Change format date for Calendar Prompt!!!

    Hello there,
    For a date prompt when I choose *"Calendar"* in my control, the default format shown by the calendar is d/mm/yyyy.
    I want to save the value of my date prompt into a Presentation variable with the format yyyy-mm-dd. What conversion function can be used to achieve this?. In oracle the easiest way is TO_CHAR(dateHere,'YYYY-MM-DD') but when I apply this in the Edit Formula of the prompt it gives me an error.
    I know the date format for a Calendar object can be changed in the configuration file, but I want to avoid this, because I might affect other users.
    Please help.
    Thanks
    Edited by: PabloC2 on Feb 18, 2009 1:36 PM

    yes, I restarted presentation server and oc4j.
    but has no effects.
    date prompt has strange behaviour...
    for Administrator user
    in English locale
    default format YYYY-MM-DD
    after change date by calendar, it has M.D.YYYY format
    in my locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format
    for other users
    in English locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format
    in my locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format

  • Updating master data for time dimensions from front end

    Hi Experts,
    I am sure this must be handled in a very straight forward way. Just want to know the best practice here. We are working on a copy of appset and want to completely revamp the time dimension papers as per client's fiscal year which is april to march every year.
    When we have deleted all the existing memebers from the time dimension master data from BPC front end and replaced with new memebers, the task is getting completed successfully.
    But when I check back in BI for the master data, it has not replaced all the existing members. How best to handle this?
    The transaction data is deleted from all the application cubes. Are there any checks to be performed?
    Thanks,
    Santosh

    Closing the thread as I could not replicate the problem. The problem is resolved.
    Thanks,
    Santosh

  • Document date for time zone of user

    We have modeled the date of documents 0CREATEDON (document header and item details) to time dimensions of InfoCubes. The 0CREATEDON date reflects the system date i.e. CST. The report user wants sales document based reporting to reflect his/her time zone date.
    We have added an additional field to the sales document header extractor that records time zone date of where document was created. This does not exist for document details extractor.
    Has anyone come up against this problem? How have you modeled the data to provide such a reporting capability? Is there date conversion routines for reporting that would convert time zone dates?

    With ABAP you can use the function "CONVERT TIME ZONE". If you type this in a test-program with se38 and then press F1 while the cursos is on the wordt CONVERT you will get all necessary explanation.
    Note: I think that the timezone of the user is available in one of the sy-fields. The daylight savings indicator is available as a sy-field for sure.

  • Data loading: formatting data for timestamp column

    Hi All,
    I have a table with a timestamp column named as created_date. I want to upload data to that table using data loading page. but there is one problem while uploading data, I have a csv file in which the created_date column data in two different format as follows ,
    09/03/2013 03:33am
    09/02/2013 03:24pm
    the above data throws an error ORA-01821: date format not recognized.
    In Data / Table Mapping page, I tried with MM/DD/YYYY HH12:MI:SS AM. What format should i use for am and pm??
    Please help me to solve....
    Thanks in advance
    Lakshmi

    I solved by using the format MM/DD/YYYY HH:MIAM.
    Thanks
    Lakshmi

  • Formating Data for Read from Spreadsheet

    Hello,
    I am trying to read data with the function Read from Spreadsheet. Can I do this with a file in Excel? I saved it as a .csv file, both tab and comma delimited and neither work. Does this function truely read from a spreadsheet, or does it need to be a text file? What is the correct format for this data?
    Thank you!
    Attachments:
    bridge_data_1.csv ‏16 KB
    read_spsheet.vi ‏73 KB

    You need to set the "delimiter" input of the Read from Spreadsheet vi. Wire a string constant with a comma in it and you should be fine. A .csv file is really just a text file anyway.
    The other problem that I saw was that you set the "transpose" input to true, this caused the data to be stored in the array across two rows, when your code was looking for it to be down the two columns. Change that boolean to false and you should be all set, it works on this end at least.
    I hope this helps. Let us know if it doesn't!
    Brian

  • Difficulty with Format Value for Time Format

     I have a vi where the current time is split out of an Analog waveform (using Get Waveform Components), and subtracted from a starting time, to result in  a relative time since the test began.  This may not be the most elegant way of doing it, but it works great.  The problem is that when I try to convert the elapsed time in seconds back to a time format for saving to a spreadsheet, I get the results shown by the probes.  In case the screen capture is not clear enough, the format string is     %<%H:%M:%S>t.  A colleague has tried this format and it works great. He's running 8.2, and I'm running 7.1.  Other than that, our applications appear identical.  Any ideas? 
    Attachments:
    Screen Capture2 of Time Format for HTV.png ‏17 KB

    I'm also on 8.2 and it works fine for me. Maybe format value couldn't handle time format codes in 7.1. I'm not really sure and I don't have it installed to check. Why don't you use "Format into String" instead? It will work the same way, and should work fine with 7.1.

  • Bex query-KEY date for time dependent objects

    Hi
    I have one infoobject called 0customer that has one time dependent attribute .called status. I would know how the system works in the following senario for the a given key date(which in bex properties).
    question 1)
    customer todate          fromdate    status
    1            20071231     20070101     Y
    1            20081231     20080101      N
    1            20091231     20081101      X
    can the data in the infoobject be overlapped? is the 3 rd record is  valid in the above example - as months(11&12of2008)  overlapping with second record? ? pls advise
    question 2)
    customer todate          fromdate    status
    1            20071231     20070101     Y
    1            20081231     20080101      N
    1            20091231     20090101      X
    If the keydate is 20080201 which record will it return?would it return the record that has status 'N'?
    what does the keydate is compared against? is it with from date or todate or between fromdate and todate? does the query return only one customer record for a given customer when it runs in the query?
    Please advise.
    Thanks
    Vennela

    1) Normally you cannot activate the data with this constellation. If you have inconsistent master data you can repair with transaction RSRV.
    2) The system returns N for key data 20080201.
    Best regards
    Dirk
    Edited by: Dirk Herzog on Nov 19, 2008 1:16 PM

  • Format axis for time based on xml file

    I am creating a graph with data that was pulled each minute.
    I have a time entry in the xml file. When I use a categoryaxis it
    creates the graph correctly, but how can I get it to only display
    the time field every 30 minutes on the horizontal axis. Right now
    the time is unreadable because it displays all of the time entries.
    I still want each entry just not the time field.

    The following link contains some source code on the subject:
    http://www.inquiry.com/techtips/java_pro/10MinuteSolutions/Gabhart10min03/Gabhart10min03-3.asp

Maybe you are looking for

  • Sending mail Problem (Urgent Please)

    The following program mail coding program. I am in local System. Host is my server. But our Server (norton) firewall is enabled. I am not able to send any mail. Will you please tell me How to recover this problem or alter my coding. If anybody knows

  • Opening aperture 2.1.3 shuts down computer

    When opening Aperture 2.1.3 it suddenly shuts down the computer once it has fully started up, a problem I have never encountered before. Any suggestions to what may have happened and how to get it fixed? Cheers

  • Finding exception with the read-write-backing-map-scheme configuration.

    Finding exception with the <read-write-backing-map-scheme> configuration, that is setup against a simple database cache store implementation. The class SimpleCacheEventStoreImpl implements CacheStore interface. Exception in thread "main" java.lang.Un

  • Error grouping items - Error 9024: Cannot modify a layer that is locked

    Hello, I'm trying to group all sublayers so that i can easily resize the group.  But when I run this code: var gi = doc.activeLayer.groupItems.add(); for(var i = 0; i < doc.selection.length; i++) {      doc.selection[i].move(gi, ElementPlacement.PLAC

  • Illustrator cs4

    I teach a graphic arts class grades 9-12. We are currently implementing Illustrator CS4 into our curriculum. I am (with limited success) learning it on the fly. We are using the Adobe Illustrator Classroom In A Book. I am finding that the students ne