Need help in formatting the Date - Date does not

Need help in formatting the Date - Date does not formats and give Not a valid month error in the below scenario.
select oc.ST_PGM_MGR, r.ag_dnum, get_major_work_type(r.perf_eval_rtng_id) "v_work_code", r.ag_dnum_supp "supp", r.intfinal, to_char(r.formdate,'MM/DD/YYYY') "formdate", to_char(r.servfrom,'MM/DD/YYYY') "srv_from", to_char(r.servto,'MM/DD/YYYY') "srv_to", descript, add_months(to_char
--- Bellow line of Code on trying to format it to mm/dd/yyyy gives the error
(r.formdate, 'DD-MON-YYYY'),12) "formdate2"
from  table REdited by: Lucy Discover on Jul 7, 2011 11:34 AM
Edited by: Lucy Discover on Jul 7, 2011 1:05 PM

Your syntax is wrong - look at the post above where this syntax is given:
to_char (add_months(r.formdate,12), 'MM/DD/YYYY') "formdate2"Look at the formula from a logical perspective - "inside out" to read what is happening -
take formdate, add 12 months
add_months(r.formdate, 12)then apply the to_char format mask - basic syntax
to_char(date, 'MM/DD/YYYY')Compare to your syntax:
to_char(add_months(r.formdate, 'MM/DD/YYYY'),12) "formdate2"You will see your format string inside the call to add_months, and your 12 inside the call to to_char.
Good luck!

Similar Messages

  • Please I'm frankly tired and in need of your help to activate the iPhone5 it does not account Icloud Old I know of has been good, I did not get before Fargo as a result of your help and thank you and appreciation

    please im tired and in need of your help to activate the iphon5 it does not account icloud old iknow of has been good, idid not get before fargo as aresult of your help and thank you and appreciation

    please im tired and in need of your help to activate the iphon5 it does not account icloud old iknow of has been good, idid not get before fargo as aresult of your help and thank you and appreciation

  • Need help in understanding the error ORA-01843: not a valid month - ECX_ACT

    Hello All,
    We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
    And how to enable the log for Transaction Monitor -> Processing Logfile.
    Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
    thanks
    muthu.

    Hello All,
    We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
    And how to enable the log for Transaction Monitor -> Processing Logfile.
    Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
    thanks
    muthu.

  • Need Help Choosing A Basic Phone That Does Not Require A Data Plan

    Hello,  I need to replace my current basic phone and do not qualify for an upgrade yet.
    I need to find a new or used phone that does not require data. Can someone please give me some models that will work that are newer?
    The VZW prepaid models have to be used 6 months on prepaid before you can use them on a contract and I have a contract.

    Usually on eBay, the listing will indicate if it's prepaid.
    I agree with Droid Usrr that the Intensity 2 is worth checking into, because it has a great rubberized keyboard and you can get one new for less than $100.
    Depending on what you're willing to spend, I also noticed that the Wal-Mart in my area is selling the brand new Intensity III off contract for $175. That way, you'd still have the year warranty on it, and it's a solid phone.
    There usually are quite a few inexpensive feature phones on Craigslist, too, if you're not opposed to meeting with strangers. It's best to meet at a Verizon store and activate it before handing over your money.

  • Need help in formatting the report created using SSRS

    I have created an image and used it as the body background. But I want that image to come at right
    Set bodyRepeat as RepeatY. 
    Currently its showing as below              I need this blue image at the right most side of the report as below
    Also I need to display text on the image.
    Need Help!!!
    Abhinav

    Hi AbhinavSultania,
    According to your description, you created a report and added background image to it, you want to display the image at right side of the report and display text on the image.
    According to my knowledge, we could not control position of background image, as a workaround, we can refer to the following steps:
    Create an image with the blue line at right side of it using Paint.
    Right-click body of the report to open Body Properties dialog box, then import the image as background image.
    Drag text box from Toolbox to the blue line of the image. Right-click inside of the text box and click Expression, we can use expression to show dynamic contents at runtime.
    The following screenshot is for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • The Help Link from the Application Pages Does not Work for Peoplesoft Campus Solutions 9.0

    Hi everyone.
    I have a problem, I have been trying to set up the Help Link from the Application Pages for Peoplesoft Campus Solutions 9.0 according to the instructions given in the Document: http://docs.oracle.com/cd/E17566_01/epm91pbr0/eng/psbooks/EnablingtheHelpLinkfromApplicationPages.pdf ,  (referenced in the Doc ID 1289101.1, E-PB: How to Set Up the Context Sensitive Help with Hosted PeopleBooks using Universal Linking).
    I follow the instructions of that document carefully:
    I go to: PeopleTools -> Web Profile -> Web Profile Configuration
        2. Then I choose the Web Profile: "Development".
        3. Then Change the value for the Help URL field by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5 , the ctx parameter selected is the one that correspond to  the Campus Solutions (hrcs90r5) according to the Product Line Code Table (ULinkID) especified in the mentioned document.
        4. Stop the Web Domain and Clear cache.
        5. Start the Web Domain again.
    After setting up the Web Profile Configuration I test the help links, thas is why I click in the Help link in any Peoplesoft CS 9.0 Application Page (modify a person), but the next error message appears: "We're sorry, the topic you requested was not found.".
    I tried many combinations with the ctx parameters URL but it does not work yet. 
    I did the same test, but this time using the Help URL field with a HRMS ctx parameter by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hcm92pbr5 , and It works fine !!!
    According to the previous test you realize that It works with HRMS ctx parameter but not with Campus Solutions 9.0 ctx parameter,  Does anybody know what else can I do ? Am I doing anything wrong or missing? or maybe the Oracle's ctx parameter for Campus Solutions URL It is broken simply.
    Thanks for you help and feedback.

    2799444 - The page you are testing with appears to be a Workforce Administration page. Is that correct?
    The CS PeopleBooks would only work for CS pages, e.g.: try navigating to Main Menu > Campus Community > Personal Information > Add/Update a Person
    Also, you can use multiple ctx parameters:
    E.g.: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5&ctx=hcm92pbr5&ctx=pt852pbh2
    This way the help would work for the HR related pages like Workforce Administration, Campus Solutions pages like Campus Community and also PeopleTools pages like Web Profile Configuration. Hope this clarifies your question. Thanks!

  • Need Help! Wierd loading percentage issue does not work in IE  but in other browsers it is ok, why?

    Hi!
    I have created a little test swf for my client and I have
    encountered a wierd problem because the loading percentage text
    field does not seem to function in IE 6 but the same file works
    fine when viewed in Firefox and Netscape. When I test the movie
    using simulate download in Flash it works well too. Is this a bug
    and how can be fixed?
    Please take a look online:
    http://www.attila.reinhardt.com/clients/accentcom/clientprofiles_cheyney.html
    I have also posted the related actionscript code below.
    Thank you for any help in advance,
    Attila

    << I Tried to post it through this link -
    http://input.mozilla.com/en-US/feedback#sad
    There was no visual clue that it took the feedback - just sat on the screen with my information in the text box. >>
    The same thing happens with me.

  • Need help with PPro & Speedgrade link - render does not match results

    Hello! My problem in a nutshell is that the color correction applied using the speedgrade link once exported does not match the preview montor results in PPro by a fairly large margin.
    Process:
    Source is AVCHD 60p 28mbps
    New sequence to PPRo
    Direct link to Speedgrade
    Color correct
    Send back to PPro
    Timeline monitor in PPRo shows correct color correction results from speedgrade
    Select and export the timeline (no extra effects added)
    Tried MFX 100 Intra, and basic h.264 150mbps MP4
    Both rendered out file with incorrect gamma, mushed colors, and missing blacks correction.
    Imported both files back into PPro and compared the source montor to the original timeline monitor and they do not match up.
    Then I tried exporting directly to a TIFF sequence, and the TIFFs render out with the correct speedgrade look...
    So something in the middle of the process in the media encoder is messing up!
    Bug probably? Anyone else experiencing this? Are you checking your output results?
    -David

    Here you go, for the h.264, which is what I normally use.
    The visible differences were for example a purple pillow in the shot has its blacks and definition, once exported the purple turns to mush, no blacks and loss of definition, like a bad gain setting.

  • Need help with tool bar options..does not show hidden options in PS5 or PS CC trial..

    in both PS% and PS 6 CC the tool bar will not reveal the hidden option when I click on the little arrow...this problem just began as I have used this successfully in the past...probably a simple solutin

    Thank you. After much experimentation I discovered it was a problem with my mouse
    Linda Badgley

  • Need help to format the output of the query.

    First of all i would like to say I m newbi in oracle query
    and of course thanks to read the thread.
    I have a problem formatting a query output.
    Actually the query is like the following :
    select a1
    ,b1
    ,c1
    from table
    where id.table=1
    UNION
    select a2
    ,b2
    ,c2
    from table2
    where id.table2=1
    order by 1;
    exit;
    my actual output
    a1 b1 c1
    a2 b2 c2
    a1 b1 c1
    a2 b2 c2
    my desired output
    a1 b1 c1
    a2 b2 c2
    a1 b1 c1
    a2 b2 c2
    So what i need is an empy row between the groups of results
    and to shift the union query.
    thanks in advance

    SQL>select * from t1;
            C1         C2         C3
             1          2          3
             2          3          4
             3          4          5
    SQL>select * from t2;
            C1         C2         C3
            30         40         50
            20         30         40
            10         20         30
    SQL>select c1,c2,c3
      2  from( select c1,c2,c3,1 flg
      3           from t1
      4           union all
      5           select c1,c2,c3,2
      6           from t2
      7           union all
      8           select null,null,null,1
      9           from dual)
    10  order by flg,c1,c2,c3 nulls last;
            C1         C2         C3
             1          2          3
             2          3          4
             3          4          5
    <br>
            10         20         30
            20         30         40
            30         40         50
    7 rows selected.
    Funny.......                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I need help to change user name, it does not belong to this account it belongs to my employee.

    My employee was helping me setup my Apple ID and accidently typed his username "mykizism" into the user name field when creating my apple id account..  It is now permanently attached to my Apple ID and this is not acceptable.
    My employee has also stated that his user name is private to him and wishes for it to be not publicly displayed.
    Can a moderator / host please help me with this?

    I sent your request in to the hosts.

  • Need help in Developing the Smartform for Delivery notes

    I'm developing the smartform for tcode vl02n.
    My question is when writing the print program which is the best way :
    1) By making use of standard print program RLE_DELNOTE
    2) developing from scratch by declaring my own types and subroutines as per my requirement.

    Hi,
    Welcome to SDN.
    I would always recommend start with the standard print program.  Most requirements can be satisfied by working with a copy of the standard form called by the standard program.
    Regards,
    Nick

  • Need help in laoding flat file data, which has \r at the end of a string

    Hi There,
    Need help in loading flat file data, which has \r at the end of a string.
    I have a flat file with three columns. In the data, at the end of second column it has \r. So because of this the control is going to the beginning of next line. And the rest of the line is loading into the next line.
    Can someone pls help me to remove escape character \r from the data?
    thanks,
    rag

    Have you looked into the sed linux command? here are some details:
    When working with txt files or with the shell in general it is sometimes necessary to replace certain chars in existing files. In that cases sed can come in handy:
    1     sed -i 's/foo/bar/g' FILENAME
    The -i option makes sure that the changes are saved in the new file – in case you are not sure that sed will work as you expect it you should use it without the option but provide an output filename. The s is for search, the foo is the pattern you are searching the file for, bar is the replacement string and the g flag makes sure that all hits on each line are replaced, not just the first one.
    If you have to replace special characters like a dot or a comma, they have to be entered with a backslash to make clear that you mean the chars, not some control command:
    1     sed -i 's/./,/g' *txt
    Sed should be available on every standard installation of any distribution. At lesat on Fedora it is even required by core system parts like udev.
    If this helps, mark as correct or helpful.

  • Flash drive no longer works with MacBook Pro. Now says it is unformatted, but no info what to do and not lose my data. Does not show up despite multiple prior uses on the same computer.

    Upgraded to OS Mavericks in November. Flash drive that worked fine previously with Lion and worked several times with Mavericks. Now says the 8GB jump drive (Lexar) is unformatted. Disk Utility First Aid seem unavailable. It sees the drive, but on the far left left, and when highlighted, nothing can be done with it.
    How do I recover my information or reformat it without losing my data?

    I am MikeMacBP2013. Cannot figure how to reply to Kappy's comment. Kappy, your comment did not really help me. My concern is how to save my data, not wipe and use a $10 USB drive.
    In the past two hours, I wasted most of it trying to use a software program, Disk Drill by Cleverfiles, that offers a "free" version. The free version does not recover your data for you. It is not a free 30 day trial. It is deceptively advetised - it will recover data but you will not see your data untless you pay them almost $100.
    Instead of trying to recover the data on the USB drive, this program ran a recovery on my computer hard drive and any disk image it could find on my computer until I stopped and deleted it. Apparently, it collects and keeps data recovered locked unless you pay for a key to download your data. This is not clearly presented up front. Had I known, I would never have put their software on my computer.
    I need direction to a reliable recovery program that is not this sneaky and deceptive. I stopped it when I discovered it was not doing what I had clicked for it to do, and removed the software.
    I am looking for a recommendation for a program that will do what Apple Disk Utility does not do - restore the formatting that may have been corrupted, or at least recover my data files so I can put them on other portable media.
    I recently installed a CalDigit Thunderbolt Dock to get USB 3.0 on my early 2011 Mac. I suspect this may have contributed to this disk failure but will have to contact their tech support tomorrow.
    Thanks for any suggestions for a reliable free or reasonably priced recovery software that someone can attest from using really works.

  • Error 1074395241: The template descriptor does not contain data required for rotation-invariant matching.

    Hello all,
    I am using the IMAQ Match Pattern 4 to detect the rotation angle of a template image. However, it shows the error: "Error 1074395241: The template descriptor does not contain data required for rotation-invariant matching." What is the problem exactly? How to solve this? The details are explained below.
    My project is a little bit complicated. Part of the block diagram containing the IMAQ Match Pattern 4 is shown below:
    The source image is a series of frames of images read from an AVI video (I used a for loop to process the images frame by frame). The template image is a selected region of the first frame. So it means, the user selected the object of ineterst in the first frame of the video, and in each of the following frames, we need to find the matched object of interest & determine its rotation angle. When I run the block diagram shown above, it does not have any error. However, it shows the rotation angle as zero no matter what it "really" is. Therefore, I changed the block diagram by adding the parameters, shown below:
    But in this case, when I run it, it shows the error that I have indicated in the subject line.
    If you need more details about my project to identify the problem, please let me know.
    Thanks in advance.
    Solved!
    Go to Solution.

    -Please go through pattern matching example which comes along with labview fiirst
    Go to labview Help>>Find Examples and you can search for example.
    -You have create template with angle range and what type of pattern matching you want use.
    -For this you have to use IMAQ Learn Pattern before using IMAQ Match Pattern 4
    Refer :http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_match_pattern_4/
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

Maybe you are looking for