How to check the date valid?

Hello

I have a stored procedure that has a parameter of type varchar data entry. This parameter is actually a date, now I want to check whether this parameter is a valid date. My version of oracle's 10g. I tried ISDATE() built-in but my version of oracle does not support.

Can ppl help please how?

Concerning

Frébault

Hello Marie Lise.
Here is the code example that you can do to check the Date. Create a function for this, hope this helps

CREATE OR REPLACE FUNCTION F_DATE(v_date IN VARCHAR2) RETURN NUMBER IS
    v_date1 DATE;
BEGIN
    select to_date(v_date) into v_date1 from dual;
        RETURN 1;
    Exception WHEN Others THEN
        RETURN 0;
END;
----------------------------------------------
SELECT F_DATE('01-JAN-09') FROM DUAL;
-- Returns 1
SELECT F_DATE('111111') FROM DUAL;
-- Returns 0

Please indicate if it helps you or correct
Kind regards
Danish

Tags: Oracle Development

Similar Questions

  • Anyone know how to check the date of warranty until when?

    Anyone know how to check the date of warranty until when?

    https://checkcoverage.Apple.com/Jo/en/;JSESSIONID=9pJ0X9pFPJtNg3c44yDGCvk9pVpt5l QSgn4B60y4Skv1WfmnqMkF!-1840326800

  • How to check the data file is set to unlimilted autoextend

    S/N,

    Oracle version: 10.2.0.4
    OS: linux

    could someone tell me how can I check the data file are set to unlimited autoextend?

    Thank you
    Bahadur.

    Salvation;

    Pelase see:
    How to check the CanGrow data files the value of Maxsize unlimited [ID 468096.1]

    Respect of
    HELIOS

  • How to check the date of last used database?

    We have a few databases are not used for a long time. How we can check the last date of use?

    I tried scn_to_timestamp (max (ora_rowscn)), does not, because scn_to_timestamp SNA must be not more than 5 days.
    I tried DBA_TAB_modifications, but we have not defined monitoring.

    Thank you very much

    SkyRiver

    How we can check the last date of use?

    If apps/user to connect through earpiece, you can look in the newspaper of the listener.

  • How to check the RegEx validation

    Hello

    My application needs to users to enter the regex. My question is how I can check the validation of the regular expression that users enter. The RegExp class does not provide any methods to check the regular expression validation.

    Kind regards

    Haibin

    You need to hand roll your own validator, unless someone knows of who is there. Flex does not validate the RegEx.

    If this post answers your question or assistance, please mark it as such.

  • How to check the data that are not digital?

    I have a varchar field and I would check for all of the lines where it does not contain a numeric value. How can I achieve this?
    Thanks in advance.

    One option is to write a small function

    CREATE OR REPLACE FUNCTION is_numeric( p_str IN VARCHAR2 )
      RETURN NUMBER
    IS
      l_num NUMBER;
    BEGIN
      l_num := to_number( p_str );
      RETURN 1;
    EXCEPTION
      WHEN others THEN
        RETURN 0;
    END;
    

    only then can you call

    SELECT *
      FROM some_table
     WHERE is_numeric( some_string_column ) = 0
    

    Of course, you can adapt the function to return the numeric value rather than a 1 or a 0 more.

    Justin

    Published by: Justin Cave on June 21, 2011 18:15

    Depending on the version of Oracle (which you don't mention), you can also write a regular expression to search for things other than numbers. This can become a little difficult if you have to manage commas and dots as decimal separators and grouping because different regions use the symbols differently and have different rules about what are valid models.

  • How to check the date of renewal of iCloud (paid)?

    I'm completely lost. I'm sure I checked everywhere (settings iCloud, info account Apple ID, menu 'manage subscriptions', etc) but I can not find my subscription renewal date to 50 GB of extra storage. Of course, I could get my mail Inbox, but I well enough to remove all the ads/receipt of Apple without reading them, so it's not an option for me.

    Any ideas?

    Thank you

    Adam.

    I believe that it is in your purchase history: see your purchase history in iTunes on Mac or PC - Apple Support store

  • How to check the data on the device network connectivity

    Hello

    Please suggest me how can I test if the unit is to have internet conectivity or not.

    We tried some of the samples but no use:

    Example 1:

    If (! blackberry.system.hasDataCoverage ()) {}
    Alert ("you are not in the coverage, we will try to send later");
    } else {}
    }

    in the config.xml file


      

    Example 2:

    We tried with html5 script but it always returns true.

    If (window.navigator.onLine == false) {}
    }

    For BlackBerry 10, you can use the extension deviceinfo to get detailed information about the State of the network:
    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/deviceInfo

    For BBOS, I can't find an extension to give detailed information, but hasDataCoverage should work.
    https://developer.BlackBerry.com/BBOS/HTML5/APIs/BlackBerry.System.html#.hasDataCoverage

    Note that hasDataCoverage is not a function, it is a Boolean property. Your current use:
    blackberry.system.hasDataCoverage)

    Must be:
    blackberry.system.hasDataCoverage

    Can you please try this?

  • How to check the data stored in the database sqlite in black berries.

    Am a newcomer to the black berries and LL hel me how to learn quickly. Wite a few good ways to study black berry quickly.

    Hi dembele,.
    Welcome to the world of BlackBerry,

    See this link, that every thing is there.

    http://supportforums.BlackBerry.com/T5/Java-development/useful-links-for-novice-and-experienced-Prog...

  • How to check the manufacturing date of the Z2?

    Hello, so the title sums up pretty much everything this. On the previous xperia phones, you can check under the battery, with xperia Z, that it was written on the back at the bottom but on Z2? How to check the date of manufacture?

    Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.

    This label can be found in the MicroSD slot, click on the following link:
    http://Userguide.sonymobile.com/referrer.php?region=en&product=Xperia-Z2#IMEI-number.html

  • HP Photosmart 7525: How to check the version of the firmware of the HP PhotoSmart 7525 is up-to-date?

    How to check the version of the firmware of the HP Photosmart 7525 is up-to-date? And where can I go to download the latest firmware?

    Hello

    Follow these steps to check the update of firmware for your printer:

    http://support.HP.com/us-en/product/HP-Photosmart-7520-e-all-in-one-printer-series/5199461/model/5286642/document/c03312867/

    Note: the printer must be connected to your network to check the updates, if it is connected with a USB key follow the steps in the tehse to connect the * beep * to your wireless network:

    1. In the wireless menu, tap Settings.

  • How to check the manufacturing date of the Z3 Compact?

    How to check the manufacturing date of the Z3 Compact?

    @HerrOdin

    Simple, pull on the flap of the IMEI and search for 14W__

    The first 2 digits are for the year and the last 2 digits are the week

    http://support.sonymobile.com/global-en/xperiaz3compact/Userguide/IMEI-number/

  • How to check the Dell laptop computer charger is authentic

    Hi.Dell Community

    I want to know how to check the Dell laptop computer charger is authentic? also, I bought the system in India on 30' th December 2015 but its POW watch warranty expires at the beginning?

    Warranty details
    Service Provider Start Date End Date Days warranty
    Only the the parts warranty REFERENCE DELL 26/06/2017 26/09/2017 614
    Next business day response REFERENCE DELL 26/06/2017 26/09/2017 614
    Only the the parts warranty REFERENCE DELL 26/06/2016 26/06/2017 522
    Next business day response REFERENCE DELL 26/06/2016 26/06/2017 522
    Parts only warranty (in Service) REFERENCE DELL 25/06/2015 26/06/2016 157
    In service (3-Business Day)(8x5) REFERENCE DELL 25/06/2015 26/06/2016 157
    TECHNIQUE STANDARD TELEPHONE SUPPORT REFERENCE DELL 25/06/2015 26/06/2016 157
    Only the the parts warranty REFERENCE DELL 25/06/2015 26/06/2016 157
    Next business day response REFERENCE DELL 25/06/2015 26/06/2016 157

    Hi Hema,

    Thank you for your kind reply.

    I bought the system in a Dell store allowed, but the thing is I'm getting confused on post purchase experience.  The bag pack which the seller gave me apparently local, when I refused to take it, he assured me that I will get a real bag after a few days. I also think that I cheated from windows.

    I will be much obliged if you can read the issue in the context (the conversation with the windows community)-

    My question - what is the use of "slmgr / / ato" command, my system is watch a range error code 0x80072EF7, when I run this command. can be solved?

    response-

    Thank you for visiting Microsoft Community.

    According to the publication of the description and the error code that you get when running ' slmgr / / ato "command, it seems that you have any question in your Windows activation.

    Use of slmgr / / ato command:

    For volume systems, with a KMS host key retail editions or a key to activate Multiple (MAK) installed /atoprompts Windows to attempt activation online. Activate Windows license and product key from the Microsoft server. If you receive error 0x80072EF7 code then I suggest you to try the steps outlined in the article below and see if it helps you to solve the problem.

    My question-

    I can't run these technical stuffs on my computer. I'm scared I might lose the original settings since I'm not familiar with computer terminology. I didn't activate windows, I run the command "slmgr/ato' because of Microsoft technical team asked me to do the same. The reality is that I just bought a new Dell laptop, which came with no reinstalled windows, but dealer told me it communicates me windows 8.1pro as compliment (when I asked him which win. I should use win10 update or win original 8.1). and the cost of windows is not mentioned in the Bill. I was not aware at the time of the purchase that I won't have a preinstalled windows system, because I asked the price for laptop with the desired configuration and win8.1. I never thought that I buy a DOS system. I paid for almost the same price for laptop with "win 8.1pro" brokers in the area compare to preinstalled laptop computer sing.language win8.1. After 2 days, when I realized the question and asked the technical team at Microsoft to see if windows that is installed on my system is authentic or not, and they told me that windows is authentic, after checking with my key.  From there, my doubt starts Can a windows be true, even if the user has no evidence that he has purchased? Is the only information is the product key which certifies the genuine windows? What is the risk if the dealer gives the same key to another customer as a "compliment".

    Once I shared the issue with Microsoft support, they tried to hear me, but I think that they have not properly my concern. However, they asked me to run that command and message showed that windows is already activated. Since then, I thought that it could be someone else can also use the same key, I tried to check this order 4 days after. Since then, this error shows. Now, I want to solve each and every error on windows, I will also be very grateful if you could provide me the only way to learn how to check the real windows.

    response-

    Yes, I agree with you, your concern on the product key. It is true that your computer vendor could give the same product key to the other person as a gift too. If another person uses the same key to activate the OS, then you might get pop up to activate your Windows or other activation errors.

    You can see the article mentioned below to check if your OS is authentic.

    My question-

    Today, I called again to Microsoft helpline years technical support says my concern again. This time they told me that 'the ID of the product' which I use is enabled on other computers, but still found my authentic windows. I wonder, earlier the chat session which is held with the technical support told me that no one can use the same key that I use. If it someone trying to do it won't affect my computer because I am one who is authentic and the first user. I don't understand why are there different versions of the truths in the company for the same problem?

    I feel very sad that the company like Microsoft is not able to do something for their customers like me who are less sophisticated techno and want to become authentic windows user! Now, I think there must be a link any between the 'error', I've mentioned above and even the activation key on a different system.  I'm afraid how it would affect my system if other systems get activated by the same key. I don't know what are the services that I won't be able to enjoy if my windows become ingenuine later. Kindly guide me how to raise my complain about best way (with respect to the argument) to the dealer or authority be it is.

    response-

    If you have a valid key, then you will be able to turn it on again. If you call our support team then they will check into his tool and validate it, after doing this they will validate your key and help by activating the latter, if it turns out anyway.

    Keep us.

  • Camileo S20 - How to display the date and time

    Hi, all. I got as Christmas present the Camileo S20, and I am not able to view the date and time in the video. In the manual is no reference on this subject, only how to set the date and time. But what is the intention to set the date and time in the camera, if it is not possible to display video?

    Hello

    Have you checked the user manual of your TV cam?

    If it of possible to display the data and the time you can find in your user manual how to do this. It always interesting to read ;) s

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

Maybe you are looking for