Change Time Portion in a Date

Dear Experts,
I want to change the time portion of a date in forms6i through pl/sql, but its not changing correctly. I have tried many options but failed
existing value = 18-FEB-2011 09:32:30. I want to fix it as 18-FEB-2011 08:00:00 through a trigger, but
it changes either date or sets time 00:00:00. By default it shows time as 12:00:00.
I can change it manually but not through triggers.
Please find me a solution
Regards
AK

user832095 wrote:
Dear Experts,
I want to change the time portion of a date in forms6i through pl/sql, but its not changing correctly. I have tried many options but failed
existing value = 18-FEB-2011 09:32:30. I want to fix it as 18-FEB-2011 08:00:00 through a trigger, but
it changes either date or sets time 00:00:00. By default it shows time as 12:00:00.
I can change it manually but not through triggers. Hello, AK
Interesting to see you are trying to convert *09:32:30* to *08:00:00* without any logic ?
It's your business.
try this it's return charecter
select TO_CHAR((TO_DATE('18-FEB-2011 09:32:30','DD-MON-RRRR HH:MI:SS')),'DD-MON-RRRR')||' '||TO_CHAR(TO_DATE('08:00:00','HH:MI:SS'),'HH:MI:SS')
FROM DUALtry this. it's return date
select to_date(TO_CHAR((TO_DATE('18-FEB-2011 09:32:30','DD-MON-RRRR HH:MI:SS')),'DD-MON-RRRR')||' '||TO_CHAR(TO_DATE('08:00:00','HH:MI:SS'),'HH:MI:SS'),'DD-MON-RRRR HH:MI:SS')
FROM DUALHopes this helps
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Change Time Constraint for Personal Data InfoType

    Hi,
    How to change the Time Constraint for Personal Data InfoType.
    I tried to do it in Customisation Procedure --> Infotypes, but the option to change Time Constraint is disabled for Infotype 0002.
    Thanks

    Hi,
    you can change time constraints in general attributes of infotype attributes,this can be done through table maintenace view V_T582A.
    But note that we cannot change the time contraints for mandatory infotyepe of personnel in an organization i.e -0000,0001,0002.
    ex:- without personal details like names no personnel will exist in an organization.
    regards,
    Soori

  • Corrupt Time Portion of a DATE column - how can this happen?

    DUMP(START_TIME)
    gives
    'Typ=12 Len=7: 100,99,255,255,0,0,0'
    How can this happen? Is there any way to prevent the database from allowing invalid dates to be inserted.
    Thanks in advance,
    Cade

    That's part of the problem. We don't have direct access to the database. I don't know what the equivalent of SQL Server's Query Analyzer or SSMS in Oracle. I'm more of a 'NET and SQL Server developer.
    What the group I am helping does is extract the data (from a system they don't control) using Focus. They send a SQL statement and then Focus retrieves the rowset and does what Focus calls a TABLE FILE operation to put it in a Focus file. Because the Focus rowset typing appears to be based on what datatypes Oracle represents the columns as having, Focus then attempts to interpret the date and time as valid. But apparently they are so messed up that Focus actually halts/crashes.
    So every morning, they notify the group responsible for the Oracle system to "fix" the records that are bad. They apparently do this by copying the END_TIME to the START_TIME, hopefully with a simple UPDATE query, but perhaps manually with some other tool.
    I'm also not a Focus expert, but in experimenting with sending different SQL statements (like using to_char() to identify the bad data) we did eventually find out how to identify these records using DUMP. What I helped the MIS group here do was to change their SQL query to be:
    SELECT CASE WHEN DUMP(START_TIME) = 'Typ=12 Len=7: 100,99,255,255,0,0,0' THEN END_TIME ELSE START_TIME END AS START_TIME
    FROM etc.

  • Changing time-out for scheduled data refresh

    Using a Power Query connection, is it possible to extend the time-out time for scheduled data refreshes? The amount of data to be retrieved is rather limited, but there's thousands of rows (NAV server).
    If not, any suggestions to how to reduce latency?
    Thanks.

    Thorm,
    Is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Time portion not exported from datetime columns

    Hi,
    in version 1.0.0.15.57, the time portion of the date colums is not exported when using any export format (always 00:00:00). I can see the date and time correctly in the table data browser after altering the session :
    alter session set nls_date_format='YYYYMMDD HH24:MI:SS'
    But when exporting the content the time section is lost.
    Is this a known problem ?

    After changing the nls_date_format, I open the data tab for the table, right-click on the table name in the connections tab (table browser), and select export/CSV. This give export the value "12:00" for all time portion. BUT I tried to right-click on the table data tab instead and choose export/CSV... the time portion is now exported correctly!
    It is not the same result to export table content using the export menu in the data tab window than the menu in the connections tab.
    Could you try it ? thanks.
    Message was edited by:
    satch
    Message was edited by:
    satch

  • I performed a time machine backup without plugging my labtop into a power source. My computer died and all the settings were changed, ie the clock and date were changed back to 2001. So I tried to restore my computer using a previous time machine backup.

    I performed a time machine backup without plugging my labtop into a power source. My computer died and all the settings were changed, ie the clock and date were changed back to 2001. So I tried to restore my computer using a previous time machine backup. (which I now know was wrong). However, when time machine tried to restore it said there was not enough room to do a backup. It seems that it did a half backup because some essential  files such as system profiler are now missing. Can I undo this restore...? What can I do to fix this

    You need to do a full system restore, per Time Machine - Frequently Asked Question #14.
    If that sends a message, please note the exact wording.

  • How can I edit my EXIF Date info without changing Time info?

    I recently went on a shoot with three cameras, one of which was set at the wrong date (sometime in 2012). I now want to correct all the date stamps on the photos taken by the camera with the bad date settings but am finding this next to impossible to do quickly - I have 416 incorrectly dated photos.
    In iPhoto '06 you could go to Photos - Batch Change and a dialogue would pop up with separate Date and Time boxes; I am using iPhoto '08 which has merged these two fields into one, meaning I now lose the correct Time of Day EXIF metadata for each photo I try to change the incorrect Date EXIF metadata on.
    I have googled for a separate app to do this, but none do this - they all seem to change everything in one go.
    How can I fix my problem and change only the Date info while keeping the existing Time info in a Batch process?

    Like I say it's a while since I used 08, but I can certainly roll back 365 or even 400 days on iPhoto 11, without changing the time using the adjust date and time command.
    Aperture uses exactly the same mechanism.
    It's even longer since I used iPhoto 6.
    I did a quick google search and found this:
    http://joemaller.com/970/date-shifting-in-iphoto-08/
    This shows exactly the same process as iPhoto 09, 11 and Aperture, and exactly what I can use to time shift a group of photographs.
    I don't think that the 08 apps were "dumbed down" at all. If I recall correctly, iPhoto gained lossless editing at that point - a very significant enhancement, and no, I don't think there was any effort to push people to change to more expensive products. IIRC every version of iPhoto since then has been less expensive. Apple did do a major rewrite of iMovie at the point, but left iMovie6 available for free as a download for two years. iMovie 11, though a very different interface, has long since overtaken iMovie 6 in capability.
    Regards
    TD

  • Database Polling Strategy: Time portion of Date/Time not propogated to BPEL

    Hi,
    I have a simple BPEL process that uses a last update date polling strategy using a helper table. The table I'm going against is a simple, three column table, as defined below:
    CREATE TABLE XXSI_TEST_PRODUCTS
    ID VARCHAR2 (32) NOT NULL,
    DESCRIPTION VARCHAR2 (32),
    LAST_UPDATED DATE
    The helper table is as follows:
    CREATE TABLE XXSI_PRODUCT_SEQUENCING
    TABLE_NAME VARCHAR2 (32),
    LAST_UPDATED DATE
    The issue I am having is when the adapter picks up the updated rows from the XXSI_TEST_PRODUCTS, that it picks up the date portion of the date datatype fine. (i.e., I can see the value in the audit flow of the BPEL console) However, the time portion of the datatype is always 00:00:00.
    Could anyone suggest what the issue is here?
    Thanks
    Aashish

    To add to this earlier note. I can get this to work with the olite database connection, but not Oracle (JDBC) thin driver. Should I be using the Type 2 OCI driver? If so, what should I use?

  • Changing Date Time Original Tag from Date Created Tag

    Hi,
    I need to change programmatically the "Date Time Orignal" tag by copying the "Date Created" Tag so that Media Encoder preserves the date during encoding. I can do this by hand without a problem in Bridget 5.5 but would like to automate it. Can I do this with a script?
    Thanks
    Axel

    I have been als been plagued by LR displaying the capture time to be, say 3 AM (03:00), when I know I took the picture at 1 PM (13:00). I decided to try and see why this happens. With the help of Phil Harvey's exiftool, I can see that my Canon cameras embed the time into the EXIF data without any time zone information i.e.: Date/Time Taken = 2008:04:02 16:09:23.
    Here is what I found:
    If the image is now edited with Bridge, the information is changed to: Date/Time Taken = 2008:04:02 16:09:23-08:00 (time zone of the editing computer for the date the image was made. In this case the date was before daylight savings time started.)
    When edited with GeoSetter (good for adding GPS information) the information is changed to: Date/Time Taken = 2008:04:02 16:09:23+02:00 (time zone for Cairo where the picture was taken.)
    Lastly edited with LR, the information is changed to: Date/Time Taken = 2008:04:02 16:09:23-08:00
    When the above images are viewed in LR, using PDT, they display the time as 17:09:23 except for the image tagged with the Cairo time, which displays 07:09:23. If the computer's time zone is changed the displayed time changes accordingly.
    If the images are displayed with Photoshop CS3 all the times are correctly displayed as 16:09:23 as one would expect.
    It appears that the factoring in of the time zone into the displayed time was a conscious decision by the Adobe designers. A decision that several of us are not happy with.

  • Birth date shifts back 1 day when changing time zones

    I live in China temporarily, but I come back to the US frequently. China is 15 hours ahead of the Mountain time zone in which I currently am. This trip, many of my birthdays were listed a day earlier in Address Book, thus being reflected incorrectly in iCal. Why would this happen? And how can I prevent it??? Very annoying!!

    Amaneta,
    this happened to me too once when traveling between EU and US, it was not the date that changed but all my appointments shifted 10 hours in iCal and Palm.
    Can't remember if there was a solution posted but I changed my Mac time to CET, installed a backup from the previous day on my Palm and deleted the iCal appointments before doing a sync with the Palm.
    Scary stuff for sure. See if just changing back the time to China time solves your problem (at least partly, you will not be in sync with US time), uncheck automatic time zones in Preferences/Date&Time

  • Part timer accrual formula - consider date track change

    Needed some help with part timers accrual formula.
    The accrual formula need to prorate the entitlement based on the work hours and accrual bands(years of service).
    The accrual formula should account for date track changes to both the years of service and work hours.
    How can this be achieved?

    This is a common but difficult problem to implement. When I've done this before I've:
    1) Used a looping Accrual Fast Formula inside the main Accrual Fast Formula (like the seeded ones), but
    2) Built a custom User Defined Fast Formula Function to retrieve the next date of change of hours/years service
    3) Called this UDT inside the looping Fast Formula to determine the next change
    4) Prorate accruals from the beginning of the year up until the next date of change
    5) Loop from the date of change going forward
    6) In the next looping iteration call the UDT again to find the next change from now
    7) Prorate accruals from now until the next date of change
    8) Continue 6-7 until there are no more changes this year.
    So in a simple year the looping formula just runs twice: once from the beginning of the year up until the service anniversary and again from the service anniversary to the end of the year. In an example where an employee changes hours it loops three times: once from the beginning of the year up until the hours change (assuming in this case the hours change comes before the service anniversary), then again from the hours change to the service anniversary, and then again from the service anniversary to the end of the year.
    In a complex example with multiple hours changes it can loop as many times as needed.

  • Can't change the month in the Date & Time preference pane

    I can't change the month in the Date & Time preferences pane. I deselected "Set Date and Time Automatically" but that didn's solve the problem. I would like to trash the preference (plist) for Date and Time but I can't seem to find it. What is it called?

    In the International Formats, the date format is as I have it set, (YYYY.MM.DD) But the MM is neither blue, nor accessible for change. The year can be changed (YYYY or YY), along with several options for the day, but I can't change the month to a different format unless I change the calendar from Gregorian, or if I change from the short date to med, long or full. Although, even then, iCal and Date and Time only show the month as 1, regardless of what it should be, and without any capacity for changing it.
    Thanks

  • 30EA3 : Unload DATE caused truncated Time portion

    Hi,
    As has been explained in the following thread on which are closely related :
    30EA1: unloading data seems to favor timestamp over date format
    I tried the unload feature and found these annoying thing :
    - Unloading DATE column from SQL Query grid, the time part is correctly given
    - Unloading DATE column from table's context menu or Database Unload, both gives me 00:00:00 as the time part, truncating the time portion.
    I choose 'csv' and 'insert' as the unload method.
    Actually there was a workaround suggested by Raghu by disabling the mapDateToTimestamp, but this workaround caused another problem as stated on above thread.
    Hope to see a safe solution to use this buggy unload feature.
    Regards,
    Buntoro

    I have corrected this problem, thanks to the guys on Metalink.
    If anyone is interested in the solution, All I had to do was copy:
    %ORACLE_HOME%\jdbc\lib\classes12.jar
    to
    %ORACLE_HOME%\mobile_oc4j\jdbc\lib\classes12dms.jar
    on the Mobile Server.

  • Problems with auto-scale vertical charts when change time zones

    I have built an application that utalizes Vertical Strip Charts.  Basiclly, XY Charts that are filled with 100 points of data each loop cycle.  To get the Time portion of it I use the Get Dat/Time in Seconds Function and then typecast it to a double.  I have built the application and installed in on several PC in my same time zone no problem, but when I send it to someone in the UK on GMT time the strip chart does not update correctly.  The scaling is off.  The interesting thing is the most recent time on the chart is correct and is updating correctly, but the time at the top of the graph is not correct.  Any suggestions or thoughts would be appreaciated.

    Can you post a copy of this application, or an example that would demonstrate this? If you change your timezone on your computer to UK's timezone and restart LabVIEW (which is necessary for the change to take affect in LV), do you see this behavior?
    Jarrod S.
    National Instruments

  • Changing To New AT&T Data Plan, Breaks Voice Mail

    Sorry, but I'm posting this in several iPhone Hardware Discussions, since I think it applies to all versions of iPhones.
    I'm also sorry if this has been posted before, but I'm not looking for help or answers, I'm providing them.
    I have been on the $30 per month unlimited data plan with AT&T. Today I decided to change to one of the lower cost, lower monthly data rate plans. I called up AT&T and they made the change.
    What I didn't realize is that making this change broke my voice mail. Well, more specifically, it broke the voice mail on all 5 phones in our Family Plan.
    By breaking voice mail I mean that people can no longer leave you voice mail messages. If they call you, they will get the standard message that this person does not have a voice mail box and you cannot leave them a message.
    Unfortunately, you don't realize it's broke. Since no one can leave you a voice mail, you don't get any voice mail notifications. AT&T doesn't send you a message stating that they just broke your voice mail. Your voice mail is broke and you don't know it.
    It was my wife who figured it out. She had several missed call notifications, but no voice mail notifications, which seemed odd. When she clicked on the voice mail icon, she was prompted to Set Up Your Voice Mail. There was no list of her existing voice mail messages. Just a button to click to start the set up process. Which she did. She was asked to enter her PIN and record an outgoing message, even though she had done this the first time she set up her voice mail. She entered both her PIN and outgoing prompt. But when she clicked Save she got an error message stating that she could not set up voice mail. Her voice mail needed to be set up, but it wouldn't let her. There was no suggestion in the prompt telling her what to do or why it was suddenly broken.
    So, I called AT&T. The person I spoke said I needed to power down the phone, which I did. After powering the phone back up, voice mail was still broke. I was then transferred to AT&T tech support. That person told me power down the phone. Which I did, but with some skepticism. After powering the phone back up I was told to go back into voice mail, which was still asking me to set up my voice mail. I followed the prompts and entered my PIN and recorded my greeting. This time it worked. Not only did I get voice working again, but I could see all the old voice mails I had. Unfortunately, I cannot get any voice mail messages during the several hours it was broken because none could be recorded.
    Technical support person did fix the problem. However, I had to contact all family members and we had to go through this same procedure (power off, wait, power on, re-enter a new PIN and greeting) for each and every phone. This took somewhere close to an hour of my time.
    The AT&T technical support person explained to me that since I changed my data plan (from unlimited to 200 MB) new "configuration" data needed to be sent to the phone. To get this data to your phone, you have to turn the phone off so they can send the data. Then you have to renter all your voice mail data.
    Incredible.
    So, as I said, I'm not looking for help or answers. But I thought posting what I went through might be helpful to anyone else who might change their data plan.
    Changing data plans = Broken voice mail .... Which requires a long phone call to technical support and reentering your voice mail data.
    Sheesh.

    I've been a cell phone user since the early days of analog cellular. Back in the days of brick phones, of which I was a user.
    I've been a customer of of Cellular One, Ameritech, Verizon, T Mobile, Cingular and AT&T.
    I've never experienced loosing my voice mail as I did today.
    I considered my voice mail broken since I could not access my visual voice mail on my phone, I could not reset my voice mail on my phone (following the prompts on my phone) and no one could leave me a voice mail message if they called me. I called AT&T customer support and they could not get my voice mail working. I'm not sure what more could be broken, but I would classify my voice mail as broken.
    You may find it acceptable to have your voice mail broken (or perhaps cut off) if you change your data plan, but I don't think that's acceptable.
    I don't see how I made a major change to my account. I didn't make any changes to the types of data I can send or receive. The only change I made was to opt for a lower cost plan that delivers all the same data. That change resulted in all 5 members of my family plan to loose their voice mail.
    You may be correct that all this needed was for it to be reset. But, I can't reset it. The customer service person could not reset it. It took the tech support person to be able to reset it. All of which was about an hour on the phone.
    I don't think this experience should be typical. Maybe it isn't. Maybe for some strange reason, in my circumstance something more went wrong. But, that's not what AT&T told me. They told me what I experienced is typical.
    So, I thought I would post this for people that might experience this issue, or think about changing their data plan so that they would know what to do.
    But, perhaps I was wrong in using this Discussion site to post what I thought might be helpful.
    I'm sorry. I will (as I told a previous poster) delete this post. As soon I as I figure out how.

Maybe you are looking for

  • How can I set up an out of office message?

    I use Macmail for my mac.com account and also to receive my business emails through another server.  I have tried to use rules to respond with an "out of office" message but it has not gone well.   The system responded to year old emails and flooded

  • My ipod is no longer synching with my itunes.

    My ipod started out being able to synch with no issue now it wont synch at all.  Anyone have an idea as to why?

  • Slapd Exited with Exit code: 1 main: TLS init def ctx failed: -1 Open LDAP

    After enabling the SSL in the Server Admin panel under Open Directory / LDAP My openLDAP will not start. Any help you could give me would be greatly appreciated! Every 10 seconds the log file updates with: Jan 31 21:48:26: --- last message repeated 4

  • Pages on my Mac will not open iCloud documents.

    I am suddenly unable to open any of my saved documents on iCloud from Pages on my Mac. I can download them via the web app, and I can open them on my iphone. However, when I select the file in Pages on my Mac, then click open. Nothing happens.

  • CS5 update errors

    When the CS5 application manager attempts to install updates, AE 10.0.2, Bridge 4.0.5, Pixel Bender 2.5 and PS Camera RAW 6.7 I am receiving an error saying, "There was an error downloading this update. Please quit and try again later." At the top it