Updating date in text format to date field

I have 2 Strings which represent the date and time respectively. I need to load these into a date field. Every way I have tried has failed. Can anyone tell me how to get these Strings into the date field?
Thanks,
Steve

Assuming these strings are in definite format concatenate them and use function to_date
For example if your date is 01-JAN-2000 and time 22:33-34
then use to_date('01-JAN-2000' | | '22:33-34', 'DD-MON-YYYYHH24:MI:SS')
More about date patterns - RTFM ;)

Similar Messages

  • Trying to convert a date in text format to date or numeric

    I've been given an excel file of members of a group, which includes listing of members' birthdays.  These are in the format "26-Jul" in text characters.  In order to sort by date for a birthday listing, I'm stuck trying to set up a calculation that would transform this to mmdd format that could be sorted on the month then the day. (no year is provided).
    Any tips or steps to create this would be very helpful.
    thanks,
    -Tod

    Hi Tod,
    What works on my machine is this:
    The "dates" in column A are text.
    The formula in column B, filled down through rest of the column:
    =RIGHT("0"&MONTH(A),2)&RIGHT("0"&DAY(A),2)
    Then you can sort on column B.
    SG

  • How can i save a data in text format

    how can i save a data in text format in labwindows cvi
    Message Edited by Tikoy on 04-14-2010 11:30 PM
    Solved!
    Go to Solution.

    Hi,
    If your data is in an array, the easiest way is to use the ArrayToFile function.
    It automatically creates a file and puts your data in it according to the format you provide.
    If you have individual samples that you need to write once in a while, you can either collect them into an array and then use ArrayToFile or open a file with fopen and write them as they are acquired with fwrite.
    Hope this helps, 
    S. Eren BALCI
    www.aselsan.com.tr

  • Convert mm/dd/yyyy text format to date format

    I imported a csv file and the date column is in text format.  How do I convert it from m/d/yyyy text format to yyyy-mm-dd DATE format in Numbers v 3.1?
    Thanks for any help you can give!

    UPDATE: I found that your formula didnt produce the correct result
    It changed mm/dd/yyyy to yyyy/dd/mm — rather than the desired yyyy/mm/dd
    By hacking at it, I found that changing the D column formulas around fixed this.
    Your original function:
    D2=RIGHT(A2,4)&"-"&MID(A2, B2+1, C2−B2−1)&"-"&LEFT(A2,B2−1)
    Changed:
    D2 =RIGHT(A2,4)&"-"&LEFT(A2,B2−1)&"-"&+MID(A2, B2+1, C2−B2−1)

  • Can't see HTML and Custom text format under data format tab in obiee.

    Hi,
    I want to add a java script to my report but I can't see HTML/Custom text format option under Data Format Tab--->"Treat Text as" menu.
    My report is a union report.
    For data column and numeric columns i can see custom option available but for text columns it is not visisble.
    Any idea why it is not showing and what should be done here.
    Any pointers are welcome.
    Please help,it is really urgent.
    Thank in advance!
    Edited by: 810008 on May 18, 2011 10:03 PM

    Hi,
    Select text column (varchar column) -> Treat Text as -> custom text format ->Remove @ (default) -> add [html]<script>sometext(‘@’)</script> followed by your javascript
    for eg:
    [html]<script>buildGoogleChart(‘@’)</script> <head> <script type="text/javascript"> function show_alert() { alert("Hello! I am an alert box!"); } </script> </head> <body> <input type="button" onclick="show_alert()" value="Show alert box" /> </body> </html>
    hope helps u.........
    cheers,
    Aravind

  • Download sales order data in Text format -User exit

    Hi Experts
    I am very new to user exits, my requirement is if i go to sales order change mode and then press save, some of the details about the sales order needs to be downloaded in text format. Please give me the steps and procedures.
    How to do this, please help me on this.
    Regards
    Rajaram

    Hi,
    Go to include MV45AFZZ,u will find USEREXIT_DOCUMENT_SAVE.In this exit
    u can get all the data from strcutures availabel thre..declare an internal table and fill the internal table with the data u want..andthen try for FM "GUI_DOWNLOAD" and pass the internal table data.I hope it might work..
    Regards,
    Nagaraj

  • Jpcap and capturing data in text format

    Hey everybody!
    I want to use jpcap to capturing all data sending from local computer, which contains words like 'sex', 'porn' etc.
    1. Is it possible to achieve this using jpcap?
    2. If the answer is yes, then please, give me small hint. I cant see any method in jpcap API to get String data from captured packets...
    Best Regards,
    Peter.

    If your need is to capture outgoing ( or maybe incoming data ) then consider using WireShark.
    Available on Windows and Linux ( maybe Solaris... )
    If you want to create something like network data capture/analyzer using jpcap then why can't you find this :
    [http://netresearch.ics.uci.edu/kfujii/jpcap/doc/|http://netresearch.ics.uci.edu/kfujii/jpcap/doc/]

  • Saving acquired data in text format instead of TDMS using the NI DAQ ANSI C code

    Hello,
    I would like to know how to change the code to make it save the file in .txt format instead of TDMS format.
    It would be great if you could help me out with this !!!
    I am attaching the DAQ mx ANSI C code for your reference
    Thanks, 
    Haritha Srinivasan
    Attachments:
    TDMS-Cont Acq-Int Clk.zip ‏1360 KB

    Hello Haritha, Hope you are doing great!
     I think this covers up what you are looking for.
    This has been covered in other forum before, please feel free to check it.
    Regards, 
    LuisA 

  • Is it possible to mail the data in excel format in data tabs?

    Hi all,
    I need a few clarification .
    We all know report data can be mailed in excel format.
    But my excel is having 4 tabs of data.
    Is that can also be mailed if so can you please guide...
    Regards
    sas

    hi,
    you can do it..
    try the following given code..
    *&      Form  process_email
    * subroutine created for processing and sending the attachments to mail id.
    FORM process_email.
      IF p_sender EQ space.
        gd_sender_type = space.
      ELSE.
        gd_sender_type = 'INT'.
      ENDIF.
    *Body
      docdata-obj_name = 'Mail_Excel_File'.
      docdata-obj_descr = 'Excel file attachment'.
      objtxt = 'Attached is the sample Excel file'.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'RAW'.
      APPEND objpack.
    *Attachment
      n = 1.                                    "for sending 1st attachment
      DESCRIBE TABLE objbin1 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment1'.
      objpack-obj_descr = 'Excel File Attachment1'.
      APPEND objpack.
      n = n + tab_lines.                       "for sending 2nd attachment
      DESCRIBE TABLE objbin2 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment2'.
      objpack-obj_descr = 'Excel File Attachment2'.
      APPEND objpack.
      n = n + tab_lines.                       "for sending 3rd attachment
      DESCRIBE TABLE objin3 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment3'.
      objpack-obj_descr = 'Excel File Attachment3'.
      APPEND objpack.
    *Create the list of recipients
      reclist-receiver = p_email1.
      reclist-rec_type = 'U'.
      reclist-express = 'X'.
      APPEND reclist.
    *Send the e-mail by using this function module
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = docdata
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          contents_bin               = objbin_final
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      COMMIT WORK.
    ENDFORM.                    "process_email
    hope this helps
    Regards
    RItesh J

  • Need a POP-UP which can display internal table data in ALV format

    HI All,
    I need to display INTERNAL TABLE values through a POP-UP. Only condition is that the window with the internal table data should be in ALV format and not in TEXT only format.
    To clarify, I used FM 'POPUP_WITH_TABLE_DISPLAY_OK'   and  'POPUP_WITH_TABLE_DISPLAY', but both display the data in TEXT format and there is no provision to put the FIELD names there. Everthing needs to be put into internal table and it displays it in text format.
    So I want a FM where I can display internal tabel data in ALV format( same format that would appear if you creata search help for a filed and output window would have all the ALV features like SORT buttons etc.
    Hope there is some FM to achieve this ALV format data thing.
    Thanks in advance for all your help.
    Regards
    FX3

    check this
    REPORT y_demo_alv_3.
    TYPE-POOLS: slis.
    DATA: BEGIN OF i_outtab OCCURS 0.
            INCLUDE STRUCTURE sflight.
    DATA:   w_chk TYPE c.                  "For multiple selection
    DATA: END OF i_outtab.
    *       I_OUTTAB TYPE SFLIGHT OCCURS 0,
    DATA: i_private TYPE slis_data_caller_exit,
          i_selfield TYPE slis_selfield,
          W_exit(1) TYPE c.
    PARAMETERS: p_title TYPE sy-title.
    START-OF-SELECTION.
      SELECT * FROM sflight INTO TABLE i_outtab.
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
           EXPORTING
                i_title                 = p_title
                i_selection             = 'X'
                i_zebra                 = 'X'
    *           I_SCREEN_START_COLUMN   = 0
    *           I_SCREEN_START_LINE     = 0
    *           I_SCREEN_END_COLUMN     = 0
    *           I_SCREEN_END_LINE       = 0
                i_checkbox_fieldname    = 'W_CHK'
    *           I_LINEMARK_FIELDNAME    =
    *           I_SCROLL_TO_SEL_LINE    = 'X'
                i_tabname               = 'I_OUTTAB'
                i_structure_name        = 'SFLIGHT'
    *           IT_FIELDCAT             =
    *           IT_EXCLUDING            =
    *           I_CALLBACK_PROGRAM      =
    *           I_CALLBACK_USER_COMMAND =
    *            IS_PRIVATE             = I_PRIVATE
         IMPORTING
                es_selfield             = i_selfield
                e_exit                  = w_exit
           TABLES
                t_outtab                = i_outtab
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2.
      IF sy-subrc <> 0.
    *    MESSAGE i000(0k) WITH sy-subrc.
      ENDIF.
    *****the internal table is modified with a cross sign for marking the
    ***rows selected
      LOOP AT i_outtab WHERE w_chk = 'X'.
        WRITE: /  i_outtab-carrid, i_outtab-price.
      ENDLOOP.

  • Putting pictures in calendar date WITH Text

    I am stumped as to why Apple would do this? When you import all your dates into the calendar feature they show up. When you place a picture on one of those dates-the date and the text disappear. Was there not some easy way to make the picture transparent or smaller so the info can be shown as well. This to me is annoying-I want to see the name and date as well as the picture.Anyone found a backdoor way to do this?
    If not:
    NOTE TO APPLE IN UPDATES: Make date and text visible on date block AS WELL as picture!
    Thanks!

    You can get text over the pictures.
    The trick is to cntr-click the picture and send it to the back. One would think this would be enough. However, you now need to cntr-click in the LOWER part of the square and select bring to front TWICE.
    Using this recipe, I can consistently get text over pictures (and even change the color of the text for more contrast). However, this change does not seem to hold once you quit and restart iPhoto, at least for me. I am looking for confirmation of this fact in another message before I submit a bug report.
    http://discussions.apple.com/thread.jspa?threadID=577322&tstart=0
    Imac G5   Mac OS X (10.4.6)  

  • Help retreiving XML data in table format

    Hello,
    i have a field which stores IP and Domain data in XML format. The field data type is BLOB.
    here is the XML data sample stored in the field.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <DOMAIN Name="DOMAIN_NAME HERE">
    <IPADDRESS Address="X.X.X.X1"></IPADDRESS>
    <IPADDRESS Address="X.X.X.X2"></IPADDRESS>
    <IPADDRESS Address="X.X.X.X3"></IPADDRESS>
    <IPADDRESS Address="X.X.X.X4"></IPADDRESS>
    ... ETC
    Is it possible to run SELECT against this field and retrieve the data in the table format, so the output will have two fields and look like
    domain IPADDRESS
    DOMAIN_NAME HERE X.X.X.X1
    DOMAIN_NAME HERE X.X.X.X2
    DOMAIN_NAME HERE X.X.X.X3
    DOMAIN_NAME HERE X.X.X.X4
    I have tried many option with Extract, extractvalue and XMLQuery, not luck.
    Thank you very much!
    Sergei

    Try...
    xp20:format-dateTime(string($dateFromDatabase), '[D01]-[MN,*-3]-[Y0001] [H01]:[m01] P')Ref
    http://www.w3.org/TR/xslt20/#function-format-dateTime
    Cheers,
    Vlad

  • Getting Source Data in Canonical Format

    All -
    I understand that in order to change the date format in xmlp we have to have the source data in the canonical format YYYY-MM-DDTHH:MI:SS
    My question is - How do I get my source data into this format? When I try to alter my session or do a to_char on a date column as follows:
    alter session set nls_date_format="yyyy-mm-ddThh24:mi:ss"
    or
    select to_char(sysdate,'yyyy-mm-ddThh:mi:ss') from dual;
    I get the message that the date format is not recognized. I'm sure that I'm just missing something simple, but any help that could be provided will be greatly appreciated.

    Hey BigD
    The XSD format is not recognized by the db ... Im chasing that up, they docs appear to say otherwise.
    You have some alternatives:
    1. If you are not bothered about the time portion you can just get the YYYY-MM-DD format and it will be formatted correctly by XMLP
    2. Use the Data Template engine from XMLP to get the data, it will format the date for you.
    3. Nasty but you could do something like:
    SELECT TO_CHAR(SYSDATE,'YYYY-MM-DD')||'T'||to_char(sysdate,'HH24:MI:SS') from DUAL
    If/When I get an answer from the db team on any function I'll let you know.
    Regards, tim

  • Comparing two dates and adding days to date

    Hi,
    I want to compare two dates(like 2006/10/21 and 2006/11/2),how can i compare these two dates,like which is greater.And if to the second date,i want to add some number of days like 10 days,how can i add so that the date becomes 2006/11/12).
    Please reply soon.Thanks

    No,all other queries are different,as they have the
    date in this format
    '2006-03-06 " but i have the date in this format
    "2006-03-06 10:26:46.0",
    i.e the time is also assciated with it.
    If I have only the date(in string format or date
    date format 2000/12/1),then I can easily do it,but
    I have the time also.If I have the date only,then I
    can split the date into three strings,and after
    converting into integer I can pass it to the
    constructor,but what about the time?SimpleDateFormat can parse "2006-03-06 10:26:46.0" date too:
               SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SS");
               Date date = dateFormat.parse("2006-03-06 10:26:46.0");
               System.out.println("date = "  +date);

  • Validating a text field that has date in the format mm/dd/yyyy

    How can I validate a text field such that it should be in the format mm/dd/yyyy and it should not be greater that a particular date.
    for example the date I enter should not be greater than 01/01/2007

    What you can do is use the SimpleDateFormat class to try and parse the text date into a Date object like this:
    SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
    Date mydate = sdf.parse(textdate);if that fails than the date has the wrong format (you'll get a ParseException if I'm not mistaken).
    The next step is to create a Date for 1/1/2007 and then do a date compare between your two dates. You can create a date yourself using the Calendar class.

Maybe you are looking for

  • Macbook Pro start up issue

    I have a problem with a mid-2012 Macbook Pro 8gb ram, 500mb hard drive, Mavericks. The problem started when I loaded up about 100 tabs in Chrome for a long airplane ride. It crashed and would book up to the flashing folder. My speculation is that I f

  • HELP - how do I Stop Sharing Every Photo on Every Device?!?!?!?

    Why have Apple decided that I want to share all of my photos with every single device?!  I DON'T!!!  There are thousands of them and they fill up devices so that apps no longer work - a totally stupid idea - can anyone please help before I delete iph

  • Lightoom 4.4, Camera raw 7.4 and D800E NEF files

    I am trying to get a NEF files made on a Nikon D800E to Import to Lightroom 4.4 with Camera raw 7.4. I get an error that states the following files were not imported because they could not be read. I can import them to Photoshop CS6 and use them in p

  • Code Inspector - Naming conventions &mExtended Naming conventions for Progs

    Hi experts, I had a look into the naming conventions enforced by 'DEFAULT' variant of code inspector (SCI). the relevant categories are: "Naming Conventions", and "Extended Naming conventions for Programs" under "Programing conventions". in the "Exte

  • Premiere Elements 10 runs wild!

    After using Adobe Premiere elements 10, on my iMac, for about half an hour, the insertion of single frame pictures to create a slideshow becomes unpredictable. Normally, I expand the time up to about 3 or 4 seconds but the system runs wild and expand