Date + Time question updating to a DATE field..

Hi,
I'm going crazy...
MEETING_DATE is a DATE column in the DB
:P40_MEETING_DATE is a TEXT FIELD with source MEETING_DATE
:P40_MEETING_DATE:=to_char(to_date('02-OCT-2006 09:14:45 PM','DD-MON-YYYY HH:MI:SS PM'),'DD-MON-YYYY HH24:MI:SS');
Ultimately I need to have :P40_MEETING_DATE a date picker and then
add a character string of a time to it.
:P40_MEETING_DATE:=to_date(to_char(:P40_MEETING_DATE,'date picker format?')||' '||:P40_START_TIME,'date picker format?');
I get all kinds of errors ORA-01858 errors.. non- numeric errors.. invalid month errors..
Bill

You are right, sorry about that.
I thought about sneaking a On Submit - After Computations and Validations process in there before the Process Row process like this:
:P216_X := TO_DATE( TRUNC( TO_DATE( :P216_X, 'DD-MON-YY HH24:MI' ) ) || ' ' || :P216_TIME, 'DD-MON-YY HH24:MI' );but that's probably the same thing you tried before.
I would just turn it into a procedure and pass the parameters...;)
I hope someone can get your going in the right direction.
chet

Similar Messages

  • Why did update stop my data, why did update stop my data

    why did update stop my data, why did update stop my data on my iphone4 on straight talk plan and apple unlocked the phone ?
    Always worked before ?

    Try http://iphone.tweakker.com and select straight talk.

  • Retrieve date, time, guid and user id data from IP u2013wrong mapping of fields

    Hi
    I have used the How to guide Line Items in BI Integrated Planning to implement the functionality to save the username, guid, date and time of who is planning. I do not get any errors but the field 0uname is empty and the guid field gets the username of the planner (0uname). The date and time field get populated correctly. Why does the fieldu2019s username and guid populated incorrectly? Do I have to change the code (I just copied the code from the How to document)? To me the abap code looks correct.
    We use BI 7.0 and SPS 17.
    Kind regards
    Erik

    Try this: Just replace the objects for ...LOGD = date, ...LOGT = time and ...LOGU = User:
    FIELD-SYMBOLS:  <l_chavl> TYPE ANY,
                    <l_curk> TYPE ANY.
    ASSIGN COMPONENT '/BIC/M2PLOGD' OF STRUCTURE c_s_chas to <l_chavl>.
    <l_chavl> = sy-datlo.
    ASSIGN COMPONENT '/BIC/M2PLOGT' OF STRUCTURE c_s_chas to <l_chavl>.
    <l_chavl> = sy-timlo.
    ASSIGN COMPONENT '/BIC/M2PLOGU' OF STRUCTURE c_s_chas to <l_chavl>.
    <l_chavl> = sy-uname.
    Regards,
    Andreas

  • Problem with Date & Time Auto Update

    Hi everyone,
    I have been experiencing a date & time issue with my MacBook Air. (I am running 10.5.5 with all the latest software updates except for iTunes 8). Here's what's going on:
    Under the Date & Time preferences, whenever I try to check the box for "Set date & time automatically", the date and time do not update. I thought Norton might be the culprit in this case, but I have thoroughly uninstalled it, and this problem still persists. (I am actually borrowing this laptop for work, so I don't know if someone else possibly did something weird to it before I started using it. As far as I can remember, I've always had this problem -- the automatic setting has never worked.)
    I am connected to the internet when I do this, and I already have my time zone selected. Am I missing something obvious here?
    I apologize if this issue has been brought up before, but I did a lot of searching and couldn't find anything. Any suggestions would be greatly appreciated!!
    Thank you.

    whenever I try to check the box for "Set date & time automatically"
    You check it and the time does not update, or you try to check it and it doesn't show a little tick mark?
    Try it with Console.app open and see does it report any errors. Try changing the time server.
    AK

  • Insert Date & Time question

    Does anyone know if there is a way to DESELECT the "Automatically update the date and time when the document is opened" dialog?
    Thanks.
    Paul

    The only way I can see is to create your own template with this unchecked. Then, when you open this template, auto date & time should be unchecked.
    It would be nice if this were a global preference. I suggest you leave feedback for the Pages team.

  • Date/Time Questions

    Hi, I'm a new Java programmer.
    I need to format a date/time variable from sql server into two string objects. One string object storing the date and the other storing the time.
    I've tried using the Date class and DateFormat class, but I haven't found a way yet.
    Can anyone help me?
    Thanks a lot,
    louis

    You could try something like this:
    Date dateAndTime = /* read date from sql server */;
    DateFormat dateOnly = new SimpleDateFormat("yyyy-MM-dd");
    DateFormat timeOnly = new SimpleDateFormat("HH:mm:ss");
    String dateString = dateOnly.format(dateAndTime);
    String timeString = timeOnly.format(dateAndTime);

  • Date/Time Question - Milliseconds

    How can I get the number of milliseconds after the 1970... from a date?
    Is there such a method in the API? I looked at the DateFormat and NumberFormat classes but I didn't find it... Is there a way a to do this?
    I want to be able to give a date and get back the number of milliseconds past the 1970 thing...
    Thanx

    DrClap has a good solution. Here is another twist:
    // Do this
    SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
    Date start = formatter.parse("01/01/1970");
    // Or do this
    Calendar calendar = Calendar.getInstance();
    Calendar.set(1970, Calendar.JANUARY, 1);
    Date start = calendar.getTime();
    return (new Date().getTime() - start.getTime());- Saish

  • PO data will automatically update the required data in sevice entry sheet

    Dear gurus
    How and explain the PO for sevice entry sheet data automatically getting updated
    in service entry sheet..
    pls expalin how it happens
    Thanks & regards
    bhanu

    Hi,
    You  need to select the relevant item from your list of services by doing the following.
    Select your first line item and click the below service selection icon and in your service select the line again and click service tab and all you informATION FROM YOUR Service order will default into your SES.
    Thanks

  • Concatenate date time and update SQL datetime field

    I have a form that captures date and time in 2 separate fields data and time.
    I need to combine these fileds and UPDATE a SQL database (datetime field)
    The date field is passed like this  DSDATE={ts '2013-11-18 00:00:00'}
    The time field is passed like this   TIME_IN1=14:05
    How do I concatenate DSDATE AND TIME_IN1 so that I can insert like this 2013-11-18 14:05:00.000 ?

    The easiest way may be the best. You judge.
    <cfset DSDATE = parsedatetime('2013-11-18')>
    <cfset  TIME_IN1="14:05">
    <cfset yr = year(DSDATE)>
    <cfset mnth = month(DSDATE)>
    <cfset d = day(DSDATE)>
    <cfset hr = listGetAt(TIME_IN1,1,":")>
    <cfset mn = listGetAt(TIME_IN1,2,":")>
    <cfset datetime=createdatetime(yr,mnth,d,hr,mn,0)>
    <cfoutput>#datetime#</cfoutput>

  • How to use dates/times in the definition of local fields?

    Hello!
    I have few tough questions for which I haven't found an answer. I hope someone is capable to help me.
    1. Is there a transaction to search tables if we know the field?
    2. I'd like to define a local field and need to use dates in the calculation function. So basically I need to calculate the lean-time from the date of the purchase order (field BSTDK) to the date of the final delivery (field PLIFTS) and the result should be displayed in weeks. How can I do this? Or can I?
    3. Can I use the local fields further in my calculations?
    Thank you in advance!
    Maria Kangasniemi

    Hi,
    1. Is there a transaction to search tables if we know the field?
    Tcode:    SE84
    2. I'd like to define a local field and need to use dates in the calculation function. So basically I need to calculate the lean-time from the date of the purchase order (field BSTDK) to the date of the final delivery (field PLIFTS) and the result should be displayed in weeks. How can I do this? Or can I?
    Doing some calculation you can define it.
    3. Can I use the local fields further in my calculations?
    What is local Fields?

  • Updating table with Modified date/time when updating any row

    Hi guys,
    What I am trying to do is this. I have a several rows in my table, alongwith the field 'Modified_date'. I want to insert a modified_date if and when I update the row in the table. Here's my code, but it's not working:
    PROCEDURE ip_maint_save (p_submit IN VARCHAR2 DEFAULT NULL ,
    p_user_no IN varchar_array_type,
    p_user_id IN varchar_array_type,
    p_ip_first IN varchar_array_type,
    p_ip_last IN varchar_array_type,
    p_user_type IN varchar_array_type,
    p_user_language IN varchar_array_type,
    p_blue_jays IN varchar_array_type,
    p_created_by IN varchar_array_type,
    p_modified_by IN varchar_array_type,
    p_modified_date IN DATE := SYSDATE
    IS
    v_count_rec PLS_INTEGER := 0;
    BEGIN
    FOR i IN NVL (p_user_no.FIRST, 1) .. NVL (p_user_no.LAST, 0) LOOP
    IF p_user_id (i) IS NOT NULL THEN
    BEGIN
    UPDATE IP_MAP
    SET IP_FIRST = p_ip_first (i),
    IP_LAST = p_ip_last (i),
    USER_ID = p_user_id (i),
    USER_TYPE = p_user_type (i),
    USER_language = p_user_language (i),
    IP_FIRST_number = Mr_Ip_Maint.ip_to_number (p_ip_first (i)),
    IP_LAST_number = Mr_Ip_Maint.ip_to_number (p_ip_last (i)),
    MODIFIED_DATE = p_modified_date (i)
    WHERE USER_NO = p_user_no (i);
    .....rest of the code/exceptions follow....
    It's not working. Although, I am able to update a row, but it's not inserting/updating the modified_date field in the table for which the row is updated.
    Thanks in advance.

    Hi,
    As per my understanding, you are passing many values at a time to be updated using varchar_array_type type. In such scenario if your User_no is 100,101,102 all are being looped and the table is updated. But where are you checking the updated field or on what bases you will come to know that this particular field is updated.
    I will suggest you to use before update triggers. As in triggers you can check the rows old and new value and then set sysdate for modified_date column.
    Something like this,
    create or replace trigger trg_IP_MAP on IP_MAP
    before update
    For Each Row
    Begin
         If (:OLD.IP_FIRST != :NEW.IP_FIRST  OR
              :OLD.IP_LAST != :NEW.USER_ID OR
              :OLD.USER_TYPE != :NEW.USER_TYPE OR
              :OLD.USER_language != :NEW.USER_language OR
              :OLD.IP_FIRST_number !=:NEW.IP_FIRST_number OR
              :OLD.IP_LAST_number != :NEW.IP_LAST_number) THEN
                   :NEW.MODIFIED_DATE = SYSDATE
         END IF;
    END;Twinkle

  • Simple Date/Time Question

    ok so I can print out the date and time when i run the program.
    How would I write a method that updated the clock every second, kinda like a digital watch. would I just use a while loop? or does java have an actual running clock?
    Here is the code I have so far:
    import java.util.Date;
    public class DateTime
         Date now = new Date();
         public DateTime()
              System.out.println(now);
          public static void main(String[] args)
               DateTime run = new DateTime();
    }

    import java.util.Date;
    public class DateTime
         Date now = new Date();
         public DateTime()
         {while(true){
              System.out.println(now);now = new Date();
    Thread.sleep(1000);
         public static void main(String[] args)
              DateTime run = new DateTime();
    I modified your code a bit better do this in a different thread though if you plan to use a GUI

  • Date - Time auto update after login on portal

    Hello,
    I have portal server 71. update 2 installed.
    the date and time which is shown after login gets updated on refresh only.
    is it the default behaviour? yes then what can be done to update automatically?
    regards,
    sumant

    yeh i know that.
    however i thoght sun must have provisioned that atleast.
    let see how i can manage. :)
    thanks
    sumant

  • Another DATE/TIME question

    HI all
    I am trying to INSERT INTO TABLE a date and time into one line..
    excerpt looks like
    CREATE TABLE Test
    (Submit DATE );
    INSERT INTO Test
    VALUES(to_date('2001-01-02 22:23:00','yyyy-mm-ss hh24:mi:ss'));
    I get an error message that says it's missing a comma (and I can't figure out WHERE). I have tried quotes in different places etc...Is it not possible to put a date and a time in the same slot?
    Thanks in advance

    Try this...
    SQL> create table mytest (submitted date);
    Table created.
    SQL> desc mytest
    Name Null? Type
    SUBMITTED DATE
    SQL> insert into mytest
    2 (SUBMITTED)
    3 values
    4 (to_date('2001-01-02 22:23:00','yyyy-mm-dd hh24:mi:ss'));
    1 row created.
    SQL> select * from mytest;
    SUBMITTED
    02-JAN-01
    HI all
    I am trying to INSERT INTO TABLE a date and time into one line..
    excerpt looks like
    CREATE TABLE Test
    (Submit DATE );
    INSERT INTO Test
    VALUES(to_date('2001-01-02 22:23:00','yyyy-mm-ss hh24:mi:ss'));
    I get an error message that says it's missing a comma (and I can't figure out WHERE). I have tried quotes in different places etc...Is it not possible to put a date and a time in the same slot?
    Thanks in advance

  • Newbie: Date time question

    I want to store a date and time into the same column. But I do not know the syntax to do it and to select it.
    Can anyone help me?

    Oracle should store this anyway - all you need to do to see this is to set the nls_date_format for the session you are using to 'DD-MON-YYYY HH24:MI:SS'
    GR

Maybe you are looking for

  • BOB shop XCM and shop admin settings document

    Hi We need to configure the BOB shop. I know that XCM settings link for b2b and BOB is same. https://<server>:<port>/b2b/admin/xcm/init.do In shop admin, we create shop for b2b business scenario: http://server.domain:port/shopadmin/shopadmin/init.do

  • Advice - URGENT

    Hi, Need advice on the following scenario... We have ASA 5510 and need to have 6DMZ. With limited ports how its possible. We dont want DMZ to communicate with other DMZ Is Sub-Interface only Solution??

  • How do I remove a podcast episode

    I can't figure out how to remove old episodes of podcasts from my shuffle.  I've done all the syncing and resyncing I can think of and I've looked everywhere for a "delete" option.  Please help if you can!!!!   Thanks.

  • Client Copy steps..in SRM5.0

    Hi any one tell me the newly created client default password (like sap*/pass..).. and also Some Important Transaction codes.. Thanks

  • BT HH4 Unlock for non BT ISPs

    Evening All Just wondering if anyone out there can help? I bought a HH4 off a friend hoping to use this on Vodafone ADSL Broadband here in Ireland. I can access settings menu to update broadband user names and PW (as well as update VCI/VPI settings f