lanettias,
Just a word of caution when formating for Oracle. The minutes format string is "MI", "MM" is months. While I assume you don't want to do a roundtrip to the database, this type of function is a good check at insert time:
create or replace function Validate_Date(DateTimeFiel
dummy date;
begin
dummy := to_date(DateTimeField, TargetFormat);
Return ('Y');
exception when others then return ('N');
end;
/
insert into mytable
select <variables>
from dual
where Validate_Date(myTime, 'HH24:MI:SS');
Good luck!
Main Topics
Browse All Topics





by: tg_wilkPosted on 2008-08-05 at 06:17:15ID: 22160547
You can use strtotime() to change the time format to what you want. Example:
Select allOpen in new window