Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
select to_date('February 2008','Month yyyy') from dual;
TO_DATE('
---------
01-FEB-08
create or replace
function IsValidDate (p_date_string VARCHAR2, p_format_mask VARCHAR2)
RETURN VARCHAR2
IS
notValid EXCEPTION;
PRAGMA EXCEPTION_INIT ( notValid, -01843);
l_x DATE;
BEGIN
l_x:= TO_DATE(p_date_string, p_format_mask);
RETURN 'Valid';
EXCEPTION
WHEN notValid THEN
RETURN 'Invalid';
END;
Do not attempt to work around bad data...reject it the moment someone attempts to enter it/store it.First Rule of Data[/b said:Let bad data live a very short life.