Ms sql date format is coming as oracle.sql.TIMESTAMP

Hi,
Instead of getting the date as mm-dd-yy i am getting the dates in ms sql as below. Can someone pls advise how to rectify this.. Thanks
oracle.sql.TIMESTAMP@16dcbc9
oracle.sql.TIMESTAMP@15e3974
oracle.sql.TIMESTAMP@10e0904
oracle.sql.TIMESTAMP@721e92

Rectify what?
No Oracle database version number?
Where is the table's DDL or description?
No idea what you are getting the date from ... is it MS SQL across a heterogenous link or a .NET app?
No idea what tool you are using ... SQL*Plus or TOAD or Excel with ODBC
If you want help you need to provide sufficient information such that the person trying to help you understands what is actually happening.
Try as I might I can not look through my monitor and see yours. ;-)

Similar Messages

  • Error in SQL Date Format Mask

    Hi,
    I am facing problem in validation data in FDQM.
    When I am trying to validate data,I am getting an error as ' An Error occured.Please verify that SQL Date Format Mask is correct'
    The current Date Format in our application is YYYYMMDD.
    I did not have this problem earlier in validating data.This problem is occuring now only and also this error is coming for few entities only.
    Could any one suggest me on how this can be resolved.
    Thanks

    Hi Kelly,
    I checked periods in control tables and there are no duplicates.
    The Period Date Format Mask is MMM-YYYY where as the SQL Date Format Mask is YYYYMMDD.
    These settings are there since the time I created application.Has it got anything to do with database.
    Appreciate your quick response
    Regards,
    Mrudula

  • Needed help regarding converting  string to java.sql.Date format

    I have a a function which returns a calendar object. The date must be inserted to Oracle DB using java.sql.Date format.
    So i have converted the Calendar object to java.sql.Date format using the following code
    java.sql.Date publicationDate = new java.sql.Date(book.getPublicationDate().getTime().getTime());But while getting inserted into the DB it was in mm/dd/yyyy format whereas i wanted dd/mm/yyyy format
    Can any body please help out how to store the date in dd/mm/yyyy format ?

    Can u please explain this a bit
    This is my code
    public int addBook(List<Book> BookList) throws SQLException, ParseException{
              System.out.println("Hi there");
              Book book = new Book();
              BookDB bookDb = new BookDB();
              //listLength =      BookList.length;
              String bookId = null;
                   try{
                        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                        con  = DriverManager.getConnection("jdbc:oracle:thin:@10.123.79.195:1521:findb01","e115314", "e115314");
                        addBook = con.prepareStatement("insert into ABC_Book values(?,?,?,?,?,?,?)");
                        Iterator<Book> iterator = BookList.iterator();
                        while(iterator.hasNext()){
                             book = (Book)iterator.next();
                             System.out.println(book.getBookId());
                             addBook.setString(1,book.getBookId());
                             addBook.setString(2,book.getTitle());
                             addBook.setString(3,book.getAuthor());
                             addBook.setString(4,book.getPublisher());
                             System.out.println(book.getPublicationDate());
                             System.out.println("Before Date");
                             System.out.println("book.getPublicationDate().getTime()"+book.getPublicationDate().getTime());
                             java.sql.Date publicationDate = new java.sql.Date(book.getPublicationDate().getTime().getTime());
                             SimpleDateFormat formatter = new SimpleDateFormat("dd/mm/yyyy");
                             dateString = formatter.format(publicationDate);
                             System.out.println("Today is"+dateString);
                             java.sql.Date date = (java.sql.Date)formatter.parse(dateString);
                             System.out.println("date"+date);
                             //java.sql.Date publicationDate = (Date)book.getPublicationDate().getTime();
                             //System.out.println("Value of date is"+publicationDate);
                             System.out.println("After Date");
                             addBook.setDate(5,publicationDate);
                             addBook.setString(6,book.getCountry());
                             addBook.setString(7,book.getLanguage());
                             rs = addBook.executeQuery();
                             //con.commit();
                             rowCount = rowCount + rs.getRow();
                        return rowCount;
                   catch(SQLException se){
                        se.printStackTrace();
                   finally{
                        con.close();
                        System.out.println("After adding ");
              return 0;
         }

  • Oracle.sql.STRUCT cannot be cast to oracle.sql.STRUCT

    I met a problem,I use oracle spatial to store geometry,then get it like this:
    STRUCT dbObject = (oracle.sql.STRUCT)rs.getObject("shape");
    JGeometry geom = JGeometry.load(dbObject);
    tomcat 6 told me java.lang.ClassCastException: oracle.sql.STRUCT cannot be cast to oracle.sql.STRUCT
    does everyone knows this problem?thanks
    Edited by: 811014 on 2010-11-13 下午9:28
    Edited by: 811014 on 2010-11-13 下午9:28

    Hi, this is a known problem for most Spatial 10g Java APIs with WLS.
    WLS is only certified with 11g DB.
    Instead of using Weblogic JNDI Lookup for Datasource, try the following snippet to create your connection/datasource (with Oracle JDBC thin driver):
    String databaseUrl = jdbc:oracle:thin:@1.2.3.4:1521:yourdbname
    String databaseUser = dbusername
    String databasePassword = dbpassword
    DriverManager.registerDriver(new OracleDriver());
    Connection aConnection = DriverManager.getConnection(databaseUrl, databaseUser, databasePassword);
    For more information, see the following:
    Classcast Exception while using Oracle ARRAYs
    regards,
    jack

  • Date Format in VC from Oracle Database

    Hi all,
    I created one BI JDBC system to access table from Oracle. I have written one query using SQL Editor. That Query displays the Valid From date and Valid To date. If I test the data service it displays the date correctly what we have given . But whenever I run that model, it displays Jan 01,2000 instead of all date. What is the problem?
    The Date format in oracle is YYYY-MM-DD HH:MM:SS.0 .Whether VC is support this format or not? Why it is taking Jan 01,2000?
    Help me in this regard. How can I resolve my problem?
    Thanks& Regards,
    Hemalatha J

    hi
    i think you have to change your web service interface, from Date to Time
    so you can use time format function
    holp it make help
    good day

  • SQL Date Format question

    Hello,
    The date format in an Access database is "Date Time" (
    1/8/2008 6:14:34
    AM ). It's a required format for some functions.
    I need to group product orders by date for a simple revenue
    summary page.
    As the time part of the date is different for all orders,
    trying to group
    all orders by one date ( 1/8/2008 for example ) won't work.
    It results in:
    1/8/2008 6:14:34 AM $30.00
    1/8/2008 7:50:23 AM $20.00
    I need it to be:
    1/8/2008 $50.00
    I've tried convert and datetime but am having some kind of
    brain cramp I
    think and can't get it to work.
    The base SQL is:
    SELECT order_Date, Sum(order_Total) as TotalAmt FROM
    OrderDetails
    GROUP BY order_Date
    Usage:
    <% While ((Repeat1__numRows <> 0) AND (NOT
    Recordset1.EOF)) %>
    <td><%= Recordset1("order_Date") %></td>
    <td><%= Recordset1("TotalAmt") %></td>
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    Recordset1.MoveNext()
    Wend
    %>
    Any ideas are appreciated.
    Take care,
    Tim
    Take care,
    Tim
    www.bestbabystuffonline.com

    Hi Baxter,
    I will be summing the totals, but I haven't added that yet.
    The date format was the big hurdle.
    I just have to figure out how to format the date back to
    mm/dd/yyy in the
    repeat region on the page now.
    It's coming out of the rs as yyyy/mm/dd
    <%=Recordset1("orderDate")%>
    I'm thinking I'll need to set up a function to format the way
    orderDate
    displays.
    <%=FriendlyDate(Recordset1("orderDate"))%>
    But, time for a break. Thanks again for the ideas.
    Take care,
    Tim
    "Baxter" <baxter(RemoveThe :-)@gtlakes.com> wrote in
    message
    news:[email protected]...
    >I also thought that you were Summing the totals from the
    order that the
    >item
    > was placed at a different time or is the sum the total
    from just one time
    > stamp?
    > SELECT order_Date, Sum(order_Total) as TotalAmt FROM
    OrderDetails
    > GROUP BY order_Date
    >
    > "TC2112" <[email protected]> wrote in message
    > news:[email protected]...
    >> I got it to group and order correctly with this:
    >>
    >> "SELECT FORMAT(order_Date, 'yyyy/mm/dd') AS
    OrderDate FROM
    > cwq_OrderDetails2
    >> GROUP BY FORMAT(order_Date, 'yyyy/mm/dd') ORDER BY
    FORMAT(order_Date,
    >> 'yyyy/mm/dd') DESC"
    >>
    >> All three had to have the same format (there was the
    brain cramp).
    >>
    >> It takes this data:
    >>
    >> 1/8/2008 6:14:34 AM
    >> 1/8/2008 7:50:23 AM
    >> 1/10/2008 8:50 AM
    >> 1/9/2008 9:01 AM
    >>
    >> and shows it in the recordset as:
    >>
    >> 2008/01/10
    >> 2008/01/09
    >> 2008/01/08
    >>
    >>
    >> Which is perfect. It's gouped and ordered
    descending..
    >>
    >> Now all I need to do is change the display format on
    the page to
    > mm/dd/yyyy
    >> here:
    >>
    >>
    >> <%=Recordset1("orderDate")%>
    >>
    >> Thanks again,
    >>
    >> Tim
    >>
    >>
    >> "Baxter" <baxter(RemoveThe :-)@gtlakes.com>
    wrote in message
    >> news:[email protected]...
    >> > Do you have a order_number field in the
    database you could
    >> > GROUP BY order_number
    >> > Dave
    >> > "TC2112" <[email protected]> wrote in
    message
    >> > news:[email protected]...
    >> >> Hi Baxter,
    >> >>
    >> >> That allows for the correct format to be
    displayed, but it's the
    >> >> format
    >> >> in
    >> >> the recordset that needs to be set at just
    the date so it can be
    > grouped.
    >> >>
    >> >> I'm pretty close with this:
    >> >>
    >> >> "SELECT FORMAT(order_Date, 'mm/dd/yyyy') AS
    OrderDate FROM
    >> >> tblOrderDetails
    >> >> ORDER BY FORMAT(order_Date, 'yyyy/mm/dd')
    DESC"
    >> >>
    >> >> It returns
    >> >>
    >> >> 1/10/2008
    >> >> 1/9/2008
    >> >> 1/8/2008
    >> >> 1/8/2008
    >> >> 1/8/2008
    >> >>
    >> >>
    >> >> Now I just need to figure out the GROUP BY
    in the SQL to return this:
    >> >>
    >> >> 1/10/2008
    >> >> 1/9/2008
    >> >> 1/8/2008
    >> >>
    >> >> GROUP BY order_Date doesn't work as
    order_date in the DB contains the
    >> >> minutes.
    >> >> GROUP BY FORMAT(order_Date, 'mm/dd/yyyy')
    throws an error.
    >> >>
    >> >> Thanks for the ideas :-)
    >> >>
    >> >> Tim
    >> >>
    >> >>
    >> >>
    >> >>
    >> >> "Baxter" <baxter(RemoveThe
    :-)@gtlakes.com> wrote in message
    >> >> news:[email protected]...
    >> >> > Try this, open the Bindings panel and
    select the date field in the
    >> >> > recordset
    >> >> > then to the right
    >> >> > of the panel you will see a column
    header called format on the right
    >> > side
    >> >> > of
    >> >> > the panel ( if you cant see it expand
    the panel box) click the
    > dropdown
    >> >> > arrow and pick the date format you
    want to display on the page from
    > the
    >> >> > Date/Time selections.. Hope this helps
    you.
    >> >> > Dave
    >> >> >
    >> >> > "TC2112" <[email protected]>
    wrote in message
    >> >> >
    news:[email protected]...
    >> >> >> Hi Baxter,
    >> >> >>
    >> >> >> I need to keep the current Date
    Time format in the database table
    >> >> >> as
    >> > some
    >> >> >> other functions need the long
    format.
    >> >> >>
    >> >> >> I'm just trying to format to short
    date in the recordset so I can
    >> >> >> group
    >> >> >> by
    >> >> >> it and have any orders, regardless
    of time, group in a single date.
    >> >> >>
    >> >> >> Thanks,
    >> >> >> Tim
    >> >> >>
    >> >> >> "Baxter" <baxter(RemoveThe
    :-)@gtlakes.com> wrote in message
    >> >> >>
    news:[email protected]...
    >> >> >> > In your order_Date field in
    the database design view set the
    > format
    >> > to
    >> >> >> > Short
    >> >> >> > Date Default Value Now()
    >> >> >> > That should work for you.
    >> >> >> > Dave
    >> >> >> > "TC2112"
    <[email protected]> wrote in message
    >> >> >> >
    news:[email protected]...
    >> >> >> >> Hello,
    >> >> >> >>
    >> >> >> >> The date format in an
    Access database is "Date Time" ( 1/8/2008
    >> >> >> >> 6:14:34
    >> >> >> >> AM ). It's a required
    format for some functions.
    >> >> >> >>
    >> >> >> >> I need to group product
    orders by date for a simple revenue
    > summary
    >> >> > page.
    >> >> >> >> As the time part of the
    date is different for all orders, trying
    > to
    >> >> > group
    >> >> >> >> all orders by one date (
    1/8/2008 for example ) won't work.
    >> >> >> >> It results in:
    >> >> >> >>
    >> >> >> >> 1/8/2008 6:14:34 AM
    $30.00
    >> >> >> >> 1/8/2008 7:50:23 AM
    $20.00
    >> >> >> >>
    >> >> >> >> I need it to be:
    >> >> >> >>
    >> >> >> >> 1/8/2008 $50.00
    >> >> >> >>
    >> >> >> >> I've tried convert and
    datetime but am having some kind of brain
    >> > cramp
    >> >> > I
    >> >> >> >> think and can't get it to
    work.
    >> >> >> >>
    >> >> >> >> The base SQL is:
    >> >> >> >>
    >> >> >> >> SELECT order_Date,
    Sum(order_Total) as TotalAmt FROM
    >> >> >> >> OrderDetails
    >> >> >> >> GROUP BY order_Date
    >> >> >> >>
    >> >> >> >> Usage:
    >> >> >> >>
    >> >> >> >> <% While
    ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %>
    >> >> >> >>
    >> >> >> >> <td><%=
    Recordset1("order_Date") %></td>
    >> >> >> >> <td><%=
    Recordset1("TotalAmt") %></td>
    >> >> >> >>
    >> >> >> >>
    Repeat1__index=Repeat1__index+1
    >> >> >> >>
    Repeat1__numRows=Repeat1__numRows-1
    >> >> >> >> Recordset1.MoveNext()
    >> >> >> >> Wend
    >> >> >> >> %>
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >> >> Any ideas are
    appreciated.
    >> >> >> >>
    >> >> >> >> Take care,
    >> >> >> >> Tim
    >> >> >> >>
    >> >> >> >>
    >> >> >> >> --
    >> >> >> >> Take care,
    >> >> >> >>
    >> >> >> >> Tim
    >> >> >> >>
    >> >> >> >>
    www.bestbabystuffonline.com
    >> >> >> >>
    >> >> >> >>
    >> >> >> >
    >> >> >> >
    >> >> >>
    >> >> >>
    >> >> >
    >> >> >
    >> >>
    >> >>
    >> >
    >> >
    >>
    >>
    >
    >

  • SQL date format

    Hi,
    Assume the records in a legacy oracle data base have an attributes called date which has the format as 'Dy DD-Mon-YYYY HH24:MI:SS' (e.g. 21-Apr-1998 21:18:27).
    In my Java application, assume that I provide a GUI for users to input date as
    "DD-MM-YYYY" (e.g. 21-04-1998).
    How can I make a SQL statement to find all records of the date "21-Apr-1998"?
    Regards,
    Pengyou

    Hi,
    I would like to clarify my question
    The oracle table that I have has a date column of the
    format (oracle default one)
    as 'DD-Mon-YYYY HH24:MI:SS' (e.g. 21-Apr-1998
    21:18:27).Just to be sure.....
    The type of the column is "date". It is NOT "varchar", "varchar2", "char" or something else.
    If so then the the column does not have a format. It is value that does not change regardless of format. What you see is the result of an oracle tool (probably sqlplus) converting it to that format.
    And as discussed you use prepared statement.
    However you MUST use a range check since you have a timestamp (not a date) and you want to compare it to a date.
    So the java would look something like this....
      String sql = "select field1 from mytable where adate >= ? and adate < ?";
      SimpleFormatDate dt = ....
      java.util.Date d = dt.parse("...");
      java.sql.Date t1 = new java.sql.Timestamp(d.getTime());
      java.sql.Date t2 = // Use calendar to add one day
      PreparedStatement ps = ...(sql)
      ps.setDate(t1);
      ps.setDate(t2);
      ResultSet rs = ps.executeQuery();Note that you MUST use exclusion and inclusion at either end (">=" and "<"). If you don't then you run the risk of including something twice or excluding something.
    And the above is explained in numerous other posts.

  • Invalid data format on EXPORTING table  to SQL-FLAT FILE (Insert type)

    Hi there!
    Writing from Slovenia/Europe.
    Working with ORACLE9i (standard version) on Windows XP with SQL-deloper 1.0.0.015.
    FIRST SQL.-DEVELOPER IS GOOD TOOL WITH SOME MINOR ERRORS.
    1.) Declare and Insert data EXAMPLE
    drop table tst_date;
    create table tst_date (fld_date date);
    insert into tst_date values (sysdate);
    insert into tst_date values (sysdate);
    2.) Retriving date with SQLPLUS
    SQL> select to_char(fld_date,'DD.MM.YYYY HH24:MI:SS') FROM TST_DATE;
    23.10.2006 11:25:23
    23.10.2006 11:25:25
    As you see TIME DATA IS CORRECT.
    When I EXPOPRT data TO SQL-insert type I got this result IN TST_DATE.SQL file:
    -- INSERTING into TST_DATE
    Insert into "TST_DATE" ("FLD_DATE") values (to_date('2006-10-23','DD.MM.RR'));
    Insert into "TST_DATE" ("FLD_DATE") values (to_date('2006-10-23','DD.MM.RR'));
    As you seel I lost TIME DATA.
    QUESTION!
    HOW CAN I SET PROPER DATE FORMAT IN SQL-DEVELOPER BEFORE I EXPORT DATA TO FLAT FILE.
    Best regards, Iztok from SLOVENIA
    Message was edited by:
    DEKUS

    A DATE-Field, is a DATE-Field and not a
    DATE-TIME-Field.
    The export-tool identifies a DATE-Field and exports
    the data into date-format.This is not true. Oracle DATE fields include a time element.
    To the original poster - I believe this is a bug in the current version.
    See this thread for possible workarounds Bad Export format --- BUG ???
    Message was edited by:
    smitjb

  • How can I change the format of numbers in Oracle SQL Developer 1.0 ?

    The value 1.4345 from a table is represented in Oracle SQL Developer 1.0 like 1.5
    How can I change this to see all the digits ?
    Thanks

    Where did you see that, in the SQL Worksheet or viewing the data Connections ->.. tables ->.. tree?
    What datatype, precision and column name you have?
    I use version 1.0.0.15.57 and seems to be working allright.
    - Babu Rangasamy

  • How to convert date format to ISO8601 in Oracle BPEL

    Hi,
    I need to convert date format from YYYY/MM/DD 00:00:00 to YYYY-MM-DDThh:mm:ss format in oracle BPEL. Can any of you help me out. Thanks in advance.

    Hi Anuj,
    I have use the below mentioned code to convert the date format.
    <db:P_X_DATE_FROM>
    <xsl:value-of select='concat(substring(../VALUE,1.0,4.0),"-",substring(../VALUE,6.0,2.0),"-",substring(../VALUE,9.0,2.0),"T",substring(../VALUE,12.0,8.0))'/>
    </db:P_X_DATE_FROM>
    Thanks & Regards,
    Jyotirmoy.

  • Convert a String to java.sql.Date Format

    Hi,
    I am having a String of containing date in the format 'dd/mm/yyyy' OR 'dd-MMM-YYYY' OR 'mm-dd-yyyy' format. I need to convert the string to java.sql.Date object so that I can perform a query the database for the date field. Can any one suggest me with the code please.
    Regards,
    Smitha

    import java.text.SimpleDateFormat;
    import java.text.ParseException;
    import java.util.Date;
    public class TestDateFormat
         public static void main(String args[])
              SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
              System.out.println(sdf.isLenient());
              try
                   Date d1 = sdf.parse("07-11-2001");
                   System.out.println(d1);
                   Date d2 = sdf.parse("07:11:2001");
                   System.out.println(d2);
              catch(ParseException e)
                   System.out.println("Error format, " + e);
    See class DateFormat and SimpleDateFormat for detail.

  • Converting String foramt(yyyy-mm-dd) to java.sql.Date format(mm/dd/yyyy)

    Hi,
    I am new to this Technology.
    in my Project DataBase I have the date field as String in format yyyy-mm-dd. when I am trying to fetch this date through the front-end I need to see the date in dd/mm/yyyy format of type java.sql.Date Variable.
    if you know, Pl help me.
    Thanks in Advance,
    Kamala.

    Then use a SimpleDateFormat object to parse it into a Date object, and also to format the Date the way you want to see it, rather than simply relying on the toString() implementation.

  • Problem in converting util date format to sql date format

    im trying to convert util date to sql date...i'm getting the error msg as
    Error is : java.lang.NullPointerException
    Error Message : null
    i'm not bale to track the result...whatz the problem with this code?
    This fromDate value will be dynamically built, value will be
    fromDate="Tue Jul 15 00:00:00 IST 2003";
    java.util.Date xx=util.stringToDate(fromDate);
    java.sql.Date sqlD=null;
    sqlD.setTime(xx.getTime());
    System.out.println("sqld"+sqlD);

    I try this and it works:
    SimpleDateFormat simpledateformat = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.UK);
    String s = "Tue Jul 15 00:00:00 IST 2003";
    java.util.Date date = simpledateformat.parse(s);
    java.sql.Date sqlD=new java.sql.Date(date.getTime());
    System.out.println("sqld"+sqlD);
    Hope this helps.

  • SQL date format dd/mm/yy

    Hi,
    I've already searched for this question, and tried the code in the answers given, but I still can't get it to work.
    I'm trying to display the current date in the format dd/mm/yy, with no time.
    Here is the code I've tried so far:
    --set dateformat dmy
    DECLARE @today as date
    --set @today = CONVERT(date, getdate()) as [dd/mm/yy]
    set @today = CONVERT(VARCHAR(10), GETDATE(), 103) AS [DD/MM/YYYY]
    print @today
    The commented out lines are previous attempts. When I run the code as it is above, I get the following error message:
    Incorrect syntax near the keyword 'AS'.
    DECLARE @today as date
    set @today = CONVERT(date, getdate())
    set dateformat dmy
    The code above results in:
    2012-06-06
    but I need the format to be 06-06-2012.
    Thanks

    Good day 
    I hope that you are still here and read this, since there is a basic reason for the error that you got in the start. and i dont see anyone mentioned it. The idea is not just to copy a solution that someone give you but to understand :-)
    I hope this is  abit useful
    >> When I run the code as it is above, I get the following error message:Incorrect syntax near
    the keyword 'AS'.
    The reason for the error in the first code that you post has nothing to do with the date or date format. It is raising since you tried to use SET parameter and you used "as ...". this is not a select query and you can not use this format: "SET
    @X = ... as name"
    * You use the CONVERT style parameter(103 in your case),
    during the display format for example when you convert it to string (the select query), but in your case you print the date in the end without any specific display style, and therefore it is printed as your current configuration.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • SQL DATE FORMATS INTERCHANGED

    Hi ,
    Pls find below details abt the issue:
    one of the column in a tablecontains date format in 2 different ways.
    acct_create_date column is varchar2 datatype
    acct_create_date 20041231093030 yyyymmddhhmiss
    20041030162525
    28281230112004 ssmihhddmmyyyy
    24241028102004
    these r the two different formats a column contains in a table. our objective is to get all the dates to consistent format like
    yyyymmddhhmiss.
    can anyone suggest ways to do it ...
    Thanks in advance

    I hope that the intention is to convert the column into a date datatype, so you won't have to go through this pain again!
    Is there another column which determines what format the date is in, or can be used to derive the format?
    If I were you, I'd knock up two functions, one for each format, and use that to test each result to see if it will successfully convert to a date or not. That way, the majority should be easy to spot which format they're in, and hopefully only a few will be dates in both formats - you'd have to go through those cases manually to see if you can work out what the format should be. You'd also have to limit the range of years in your function.
    eg.
    select date_col, to_ymdhms(date_col), to_smhdmy(date_col)
    from my_tab
    where to_ymdhms(date_col) is not null
    and to_smhdmy(date_col) is not null;

Maybe you are looking for

  • Let Macbook Pro share the Mobile Phone connection

    Hi there, try using macbook and mobile phone bluetooth to let my macbook pro share the internet connection from my mobile phone network. you know most of the time when i carry my laptop, there is no wifi connection to use internet, but mobile phone s

  • PR/PO Approval LOA (Limit of Authority)

    For the release strategy setup based on my company procurement LOA (Limit of Authority), manager are allow to approve purchases up $10,000, Senior Manager up $100,000, CEO > 1 million etc. This type of LOA should it be apply at Purchase Requisition o

  • Fail over Between Gateways

    Hello Thanks in advance... currently we are using 2 management servers NW.contoso.com and WD.contoso.com and four gateway servers(abc.com,xyz.com,123.com,987.com)reporting to above management servers  NW.contoso.com as primary and WD.contoso.com as s

  • Reading table: /SAPAPO/AM_ALERT or using FM: /SAPAPO/AMPLLP_SDP_ALERTS

    Hello all, I am trying to build a logic that retrieves the database alerts from the table: /SAPAPO/AM_ALERT. Problem is the mapping of the OBJECT ID's on this table where I encounter some for which I cannot find a correspondence. Currently I have the

  • Flex 2-14 issues

    Dear Users, I strongly advise you not to consider buying the Lenovo model Flex 2-14 or any Lenovo machines at all. I bought one recently and the screen has yellow spots in the corners and on the sides from day 1. Also the laptop rattles thanks to its