date format conversion

Hello

I have the date format in the table as below and now I need to convert the date format YYYY-MM-DD hh: mm :)

data type of column is varchar2 (20)

1993-06-24 - 14.15.06.785408 (note: hours, minutes, seconds, milliseconds are separated by.) (dot)

1991-11-05 - 11.32.17.045702

Can someone help me please.

Thank you!

Hello

3058870 wrote:

Hello

I have the date format in the table as below and now I need to convert the date format YYYY-MM-DD hh: mm :)

data type of column is varchar2 (20)

1993-06-24 - 14.15.06.785408 (note: hours, minutes, seconds, milliseconds are separated by.) (dot)

1991-11-05 - 11.32.17.045702

Can someone help me please.

Thank you!

Do not store information on dates in a VARCHAR2 column. It's simply to request data not valid, complicated, inefficient code and runtime errors.  The columns DATE, or, if necessary, fractions of a second TIMESTAMP.

To convert strings from one format to another, you can always use TO_DATE to convert any format they are dates and then use TO_CHAR to generate a new string, in any desired output format.

In this case, it seems that you just want to lose the split second, change the 3rd indent to a space and change points to colons.  You can do the following:

SUBSTR (datatype, 1, 10).

' '                      ||

REPLACE (SUBSTR (datatype, 12, 8)

, '.'

, ':'

)

If you would care to post CREATE TABLE and INSERT statements for some sample data and accurate results, you want from these data, then I could test this.

Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

You could do all the work in a single call REGEXP_REPLACE, but it is probably more complicated and less effective.

Tags: Database

Similar Questions

  • varchar2 to the date format conversion

    I have converted the formats of date several times, but for some reason, I get an error invalid number when you try to convert a varchar2 column. I tried the to_char and to_date function and I get the same result. The column is a date and it is formatted like ME-DD-YYYY, but I want to change it to DD/MM/YYYY. My query is below:

    Select to_date('fccpdate','MM/DD/YYYY')
    of cc_class_scmast_v

    When I try to_date I get this:

    Error from the 1 in the command line:
    Select TO_DATE ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
    Error report:
    SQL error: ORA-01858: a non-digit character was found here where was waiting for a digital
    01858 00000 - "a non-digit character found here where was waiting for a digital".
    * Cause: Input data to convert using a date format model has been
    incorrect answer. The input data did not contain a number where is a number
    required by the format model.
    * Action: Fix the input data or the date format model to ensure that the
    elements correspond to the number and the type. And then try the operation again.



    When I try to_char I get this:

    Error from the 1 in the command line:
    Select TO_char ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
    Error report:
    SQL error: ORA-01722: invalid number
    01722 00000 - "invalid number."
    * Cause:
    * Action:


    I tried to remove the single quotes of my column and that does make a difference. Any help is appreciated.

    Hello

    housetiger77 wrote:
    I have converted the formats of date several times, but for some reason, I get an error invalid number when you try to convert a varchar2 column. I tried the to_char and to_date function and I get the same result. The column is a date and it is formatted like ME-DD-YYYY,

    If the column is a DATE, then it has the same format that all DATEs, which is nothing like 'DD-MON-YYYY '. Formats like which apply only to chains.
    Conversely, if it is in the format "DD-MON-YYY", then it is a string, not a DATE.

    but I want to change to DD/MM/YYYY. My query is below:

    Select to_date('fccpdate','MM/DD/YYYY')
    of cc_class_scmast_v

    To_date (x, "MM/DD/YYYY") tries to convert the string x in a DATE. Let's say it starts by taking the first 2 characters of x, for the month. The first 2 characters of 'fccpdate' are "fc", which is not a valid number (at least not in base 10), not to mention a number from 1 to 12, TO_DATE so will raise an error.

    When I try to_date I get this:

    Error from the 1 in the command line:
    Select TO_DATE ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
    Error report:
    SQL error: ORA-01858: a non-digit character was found here where was waiting for a digital
    01858 00000 - "a non-digit character found here where was waiting for a digital".
    * Cause: Input data to convert using a date format model has been
    incorrect answer. The input data did not contain a number where is a number
    required by the format model.
    * Action: Fix the input data or the date format model to ensure that the
    elements correspond to the number and the type. And then try the operation again.

    When I try to_char I get this:

    Error from the 1 in the command line:
    Select TO_char ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
    Error report:
    SQL error: ORA-01722: invalid number
    01722 00000 - "invalid number."
    * Cause:
    * Action:

    I tried to remove the single quotes of my column and that does make a difference. Any help is appreciated.

    It's a good first step. Literals are enclosed in single quotes are not identifiers (including the column names). "fccpdate" is the literal string of 8 characters containing 'f', ' c; Another 'c', 'p' 'd', 'a', 't' and 'e'. " fccpdate (without the single quotes) can be the name of a column.

    If fccpdate is a string, as July 18, 2012', then you can convert it to a DATE using TO_DATE.

    TO_DATE (fccpdate, 'DD-MON-YYYY')
    

    If you want to display a DATE in a particular format, use

    TO_CHAR ( d
            , f
            )
    

    where d is a DATE, and f is the format string. In this case, d is perhaps the TO_DATE expression above

    TO_CHAR ( TO_DATE (fccpdate, 'DD-MON-YYYY')
            , 'MM/DD/YYYY'
            )
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.
    See the FAQ forum {message identifier: = 9360002}

  • sqlldr: using RTRIM date format conversion

    Hi all

    I need assistance with date formats using sqlldr to load.
    I did some research on the internet, but not really good to find examples that help in my case clear.

    I am trying to load data from another source into our Oracle database, however, the field 'date' includes additional characters that I am dealing with.
    For reference, I'm under Oracle 11.2 on Linux 5.7.

    First, the entry of the actual date is:
    April 18, 2013 8:50:44 AM EDT
    I tried to get in a few ways but could not load until I physically removed the "AM EDT' the input string.
    My first question is if there is a way to RTRIM and get rid of these extra characters.
    Or maybe I just need a way to convert the "AM EDT" our standard date format.

    My controlfile has the following:
    LASTCHANGEDAT date "Month dd, YYYY HH MI SS",
    This will load the data, but only if I'm hard on the 'AM EDT' of the actual data entry which is not feasible.


    Also, how I would manage that comes as the date: April 18, 2013 21:50:44 CEST

    Also, I tried the following, but it gives me a different error:


    LASTCHANGEDAT "to_date(:LASTCHANGEDAT,'DD-MON-YYYY HH24:MI:SS')",
    
    gives me error:
    
    Record 1: Rejected - Error on table NTWKREP.INTERFACE, column LASTCHANGEDAT.
    ORA-01858: a non-numeric character was found where a numeric was expected
    Published by: 974632 on April 22, 2013 12:41

    You only need a control file and it's okay if you are using AM or PM in the control file. Using AM or PM just said to expect one or the other in this position and will take care of both of them. Please see the demo below that shows that either am or pm in the control file works with am and pm in the data.

    SCOTT@orcl_11gR2> host type test.ctl
    load data
    infile *
    into table test_tab
    fields terminated by '|'
    (lastchangedat1 timestamp with time zone "Mon dd, yyyy hh:mi:ss am tzd",
    lastchangedat2 timestamp with time zone "Mon dd, yyyy hh:mi:ss pm tzd")
    begindata:
    April 18, 2013 8:50:44 AM EDT|April 19, 2013 9:51:45 PM EDT
    April 20, 2013 10:52:46 PM EDT|April 21, 2013 11:53:47 AM EDT
    
    SCOTT@orcl_11gR2> create table test_tab
      2    (lastchangedat1  date,
      3     lastchangedat2  date)
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test.ctl log=test.log
    
    SQL*Loader: Release 11.2.0.1.0 - Production on Tue Apr 23 10:09:59 2013
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 2
    
    SCOTT@orcl_11gR2> select * from test_tab
      2  /
    
    LASTCHANGEDAT1          LASTCHANGEDAT2
    ----------------------- -----------------------
    18-apr-2013 08:50:44 am 19-apr-2013 09:51:45 pm
    20-apr-2013 10:52:46 pm 21-apr-2013 11:53:47 am
    
    2 rows selected.
    
  • Date format conversion - am/pm

    I want to insert below in a table, the column is type 'DATE '.

    but in the following case which is at 12:00, it removes the time part and returns ony the part date how he converted with a portion of time. (without using 24-hour format)
    See the queries

    SELECT to_date('01/11/2011 11:59:00 am','dd/MM/yyyy hh:mi:ss am')
    OF the double
    Back: 11/01/2011 11:59

    SELECT to_date('01/11/2011 12:00:00 am','dd/MM/yyyy hh:mi:ss am')
    OF the double
    Back: 11/01/2011

    SELECT to_date('01/11/2011 12:01:00 am','dd/MM/yyyy hh:mi:ss am')
    OF the double
    Back: 11/01/2011 12:01:00 AM

    I can get it at the TO_CHAR conversion but there is a problem when inserting a DATE column type?

    SELECT to_char (to_date('01/11/2011 12:00:00 am','dd/MM/yyyy hh:mi:ss am'),' dd/MM/YYYY HH: mi: ss am')
    OF the double

    user483578 wrote:
    Thanks everyone... It was like that... and worked well

    DECLARE
    x varchar2 (50);

    BEGIN

    SELECT to_char (to_date (11 January 2011 12:00 ',' dd/MM/yyyy hh), ' dd/MM/yyyy HH')
    X
    DOUBLE;

    INSERT INTO my VALUES (to_date (x,' dd/MM/yyyy hh));

    END;

    ?

    It's the same what do I do...

    BEGIN
      INSERT INTO ma VALUES(to_date('01/11/2011 12:00:00','dd/MM/yyyy hh:mi:ss'));
    END;
    

    There is no need to convert a string date and then back to a string and then insert this string by converting it back to a date once again.

  • Date format Conversion MM/DD/YYYY month day, year

    Hi all

    Is there a BEEP function that converts the DD/MM/YYYY month day, year?

    for example.

    08/10/2010 convert to 8 October 2010

    Thank you very much!

    Since your date is not in canonical format, you cannot format dates directly.
    You will have to do with workarounds.
    Try to use
    ,

    Here, I assume that your date is delivered in the format MM/DD/YYYY

  • Java date format

    Hello world

    I have a piece of code like below for date format conversion.
    DateFormat formatter1 ; 
    DateFormat formatter2 ; 
    Date date = new Date(); 
    
    formatter1 = new SimpleDateFormat("yyyy-mm-dd");
    date = formatter1.parse("1952-12-10"); 
    System.out.println("before format, date is " + date);
    
    formatter2 = new SimpleDateFormat("dd-MMM-yy");
    formatter2.format(date);
    System.out.println("after format, date is " +formatter2.format(date));
    I would change from 1952-12-10 became 10 December 52, however, I get the below output:

    before the format, the date is Thu Jan 10 00:12:00 MYT 1952
    After format, date is January 10, 52

    AAAA-MM-JJ is probably meant for formatter1.

  • Problem with the conversion of getDate() to Date format?

    Hi guys,.

    I need to convert the date selected for DateField string format (for example: yyyy-mm-dd).

    I put the date format DateField as "mm-dd-yyyy '.»

    I tried to get the date of this DateField and tried to convert the format 'yyyy-mm-dd ".

    When I tried, I had a bad outing.

    For example, when I selected 12 months he returned as "00" the following coding.

    SimpleDateFormat dtFormat = new SimpleDateFormat("yyyy-mm-dd");
    Date dtToConvert = new Date(mydatefield.getDate());
    strRequired = dtFormat.formatLocal(dtToConvert); 
    

    Can someone explain what that is the bug with this code or any other way to get the output as my requirement?

    Thanks in advance,

    Stéphane

    Oops, sorry, code should have been...

    DateFormat df = new SimpleDateFormat("yyyy/MM/dd");
    long dateLong = field.getDate();
    Date date = new Date(dateLong);
    String dateString =df.format(date);
    
  • conversion of data format

    Hello

    current data format
    COL1    COL2
    1,2       A
    3,4       B
    5          C
    required data format
    COL1    COL1
    
    1          A
    2          A
    3          B
    4          B
    5          C
    Thank you

    Try this

     SQL> with t
      2  as
      3  (
      4  select '1,2' col1, 'A' col2 from dual union all
      5  select '3,4' col1, 'B' col2 from dual union all
      6  select '5' col1, 'C' col2 from dual
      7  )
      8  select regexp_substr(col1, '[^,]+', 1, level) col1, col2
      9    from t
     10  connect by level <= length(col1) - length(replace(col1, ',')) + 1
     11     and col1 = prior col1
     12     and prior sys_guid() is not null
     13  /
    
    COL C
    --- -
    1   A
    2   A
    3   B
    4   B
    5   C
    
    SQL> 
    
  • insertion error - date format picture ends before the conversion while

    My system: I use of Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product with SQL * more: Release 10.2.0.1.0 and the first thing I've done in this project is a user account configuration especially for her through Application Express 2.1.0.00.39 with all permissions and then connected with SQL * more and seized command and run scripts on it since.

    I got the following error was in a previous project, but I don't have the result of it so I don't know how much he touched me. We can not always distribute perfect projects so I could live with that. It is that this new project is the first that start from a previous one have of course, I still have the error so I think they'll be less forgiving of mistakes that I had more time to work on it. However, after hours of research & debugging tests I still cannot do things.

    I read on sites in development more than a couple that we should not rely simply on inputs of channel inserts on dates where there is incompatibilities with nls_date_format and based instead on TO_DATE. This seems logical and I have no problem of implementation, but there is a problem running it. :|

    The following is an excerpt from my project bringing the error that I need to move.
    Thank you so much for your help
    DynV

    H2.
    code

    ALTER SESSION SET nls_date_format = "DD/MM/YYYY";
    DROP TABLE EMP;

    CREATE TABLE EMP
    (
    NOEMP INTEGER NOT NULL PRIMARY KEY,
    NAME VARCHAR (15) NOT NULL,
    FIRST NAME VARCHAR (15) NOT NULL,
    NOFONCTION INTEGER NOT NULL,
    DATEEMBAUCHE DATE,
    SALARY INTEGER NOT NULL,
    NODEPT INTEGER NOT NULL-,
    -FUNCTION REFERENCES FOREIGN KEY (NOFONCTION),
    -FOREIGN KEY (NODEPT) REFERENCES DEPT
    );

    -NoEmp, name, NoFonction, DateEmbauche, NoDept, salary
    INSERT INTO VALUES EMP (1230, "DAHER", "ERIC", 1, TO_DATE (DECEMBER 17, 1997 ',' DD/MM/YYYY ""), 40, 20000);
    INSERT INTO VALUES EMP (3235, "LEMAY", "PATRICK", 3, TO_DATE (FEBRUARY 20, 1982 ',' DD/MM/YYYY '), 20, 3500);

    H2.
    result

    Modified session.

    Table created.

    INSERT INTO VALUES EMP (1230, "DAHER", "ERIC", 1, TO_DATE (DECEMBER 17, 1997 ',' DD/MM/A))
    YY'), 40, 20000)
    *
    ERROR on line 1:
    ORA-01830: date format picture ends before converting all of the input string

    INSERT INTO VALUES EMP (3235, "LEMAY", "PATRICK", 3, TO_DATE (FEBRUARY 20, 1982 ',' DD/M))
    M/YYY'), 20, 3500)
    *
    ERROR on line 1:
    ORA-01830: date format picture ends before converting all of the input string

    H1.
    solution

    The Xgc of channel for the IRC server freenode user [#sql | irc://freenode/%23sql] had me I was using 3 characters for my picture/mask/filter /... instead of the 4 that taking data. then they became "JJ/M".
    M/YYYY "."

    How small error but with such devastating consequences.

    Published by: user13420426 on December 6, 2010 01:39

    You're 1 shy O.

    TUBBY_TUBBZ?select TO_DATE('17/12/1997', 'DD/MM/YYY') from dual;
    select TO_DATE('17/12/1997', 'DD/MM/YYY') from dual
                   *
    ERROR at line 1:
    ORA-01830: date format picture ends before converting entire input string
    
    TUBBY_TUBBZ?select TO_DATE('17/12/1997', 'DD/MM/YYYY') from dual;
    
    TO_DATE('17/12/1997'
    --------------------
    17-DEC-1997 12 00:00
    
    1 row selected.
    
    TUBBY_TUBBZ?
    

    Notice how I YYYY where you YYY.

  • Is there a way to use data formats i.e. Go Mo Ko in numbers?

    Is there a way to use data formats i.e. Go Mo Ko in numbers?

    I am trying to add the size of the library files to estimate the needs of the HD. If I had the files on my system I could just put them in a folder and the operating system would be to calculate them for me, but I don't have them yet. I have a list of files and their size in GB.

    Someone has it worked?

    I suggest the following:

    Create a second table called "convert".

    In this table, enter the first column as show (pasted here so you can copy)

    Value

    Divide by

    suffix

    0

    1

    b

    400

    1024

    Ko

    1000000

    1048576

    MB

    1000000000

    1073741824

    GB

    1000000000000

    1099511627776

    TB

    Appropriate now in the table 1 use the conversion table to change the size of the files in the format:

    "C2 = ROUND (B2÷VLOOKUP (B2, Convert::A:C, 2, 1), 2) &" "& VLOOKUP(B2,Convert::A:C,3,1)".

    It's shorthand dethrone select cell C2, then type (or copy and paste it here) the formula:

    "= ROUND (B2÷VLOOKUP (B2, Convert::A:C, 2, 1), 2) &" "& VLOOKUP(B2,Convert::A:C,3,1)".

    Select cell C2, copy

    Select cells C2 at the end of the C column, paste

  • Sort data in date format DD/MM/RRRR

    Hello

    I have to sort our data between two dates ex 01 01, 2016 to the 31/01/2016 for the list of transactions.

    Will I convert in JAN-16 format so that I can sort by where period_name like ' JAN-16'?

    If so how do I convert a date format of 01/01/2016 JAN-16?

    Thank you

    Hello

    Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.

    Also post the exact results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

    As Chris and Tubby has said, all DATEs are stored in the same internal format, which has nothing to do with the format you use to view or format you use in conversion as TO_DATE functions.

    Oracle provides many functions and other features for the manipulation of DATEs, you seldom need to convert them to another format.  For example, we wanted to get a list of employees of the scott.emp sorted by month and by ename; in other words, December 1980 would come before April, 1981, as from habit, but the day of the month, hours minutes and seconds would all be ignored in sorting.  We can use the TRUNC function to do this:

    SELECT TO_CHAR (hiredate, 'Mon-YYYY') AS hiremonth

    ename

    hiredate

    FROM scott.emp

    ORDER BY TRUNC (hiredate, 'MONTH')

    ename

    ;

    Output:

    HIREMONTH ENAME HIREDATE

    ---------- ---------- -----------

    DEC-1980 SMITH December 17, 1980

    Feb-1981 ALLEN 20 February 1981

    Feb-1981 WARD 22 February 1981

    Apr-1981 JONES April 2, 1981

    May-1981 BLAKE may 1, 1981

    Jun-1981 CLARK June 9, 1981

    MARTIN 1981-Sep 28-Sep-1981

    Sep-1981 TURNER 08-Sep-1981

    Nov-1981 KING November 17, 1981

    DEC-1981 FORD December 3, 1981

    DEC-1981 JAMES December 3, 1981

    Jan-1982 MILLER January 23, 1982

    Apr-1987 SCOTT April 19, 1987

    May-1987 ADAMS 23 May 1987

    Notice how MARTIN comes before TURNER in the output (I marked these Redlines), even if MARTIN hiredate is 20 days later than TURNER.  This is because only the year and month are considered in the sorting.  Any DATE in the same month will get the same sort value.

  • XQuery dateTime format conversion

    Hi all

    I need a help for the format of date and time conversion. A working java method must be converted into fusion middleware Xquery function. Not sure that any function proper Xquery exists for this.

    Scenario:

    -------------

    Basically, I date. MinValue (SimpleDateFormat instance in java) defined in ' MM/dd/yyyy hh: mm: "and in"DDMMYYYY"format outputDate Any incoming string should be analysed in date format. MinValue and then converted to the format outputDate.

    Example: Incoming String - 26/12/2013 14:21:33 Outcoming 12262013

    I know Java, it is easy, but all the suggestions in xquery, appreciated.

    Thank you

    Billon

    Here's one way:

    declare function local: format ($dt as xs: String *) as XS: String {}

    If (not ($dt)) then '01011970 '.

    on the other

    chaine-join)

    for $i in tokenize (substring-before($dt, ""), ' / ')

    return if (string-length ($i) = 1) then concat ("0", $i) of other $i

    , ""

    )

    };

    local: formatDate("1/2/2013 14:21:33")

  • change number / Date Format dynamically

    Hello
    With the help of apex 4.2.1. OC4J linux 11 GR 2
    I have several report that shows financial data for a company.
    This report is accessible by people in the United States, the United Kingdom and IND

    We have a static conversion rate, so I change my queries to the multiple based on the selection list parameter (P37_CURRENCY).

    for example
    select REVENUE_V.ANNUAL_REVENUE_BUDGET * :P37_CURRENCY as ANNUAL_REVENUE_BUDGET,
        REVENUE_V.ANNUAL_REV_ACT_YTD_PRIOR_MO  * :P37_CURRENCY as ANNUAL_REV_ACT_YTD_PRIOR_MO
        from REVENUE_V REVENUE_V
    where company_id = :P37_COMPANY_SELECTOR
    and week_number = :p37_week_number 
    Question: How to change the number format in dollar/GBP/RS according to parameters.



    Thanks for help


    NS

    Tony

    I followed your directions and add an element coming stores the value, the value of changes in session state (property).

    I've added two condition of dynamic on the currency action when this USD then symbol = $ other is when GBP £ can

    When I view the item, it shows me the correct currency symbol but not least of the report.
    for example

    
    Revenue
    Annual Rev-Budget     24313387.2
    

    missing symbol

    Column attributes
    Display as text (character option special escape) (also tried with standard column)
    Number / Date Format * & MY_ITEM.*

    Any idea/help what would go wrong.

    Thank you
    NS

  • Set the default Date Format in 4.2 jQuery Mobile Smartphone

    Hi guys,.

    on 'normal' office interfaces, you can set a default date format in the globalization settings. Currently I am working on an application JQM and I noticed that the same settings I have to format date in other applications, take effect.

    I read today in the 4.2 notes version, that somehow this question was a bit buggy. If this problem is corrected? I would firstly like JJ German date format. "" MR. YYYY "; (such that it works in office applications). How can I do? This entry is saved in the global settings.

    But whenever I want to put a date-picker-merchandise in this format, it changes again in 'YYYY-MM-DD' after registration. And I don't really want to enter a dml processing conversion function writing now.

    Thanks for all tips, best looks,.
    Tobi

    Hey Tobi,

    the item type of ' date picker (HTML5) "corresponds to the type of input HTML5 = 'date', which requires that the internal format of the value date must always be YYYY-MM-DD, but he returned to the browser to display the date in the format of the local operating system parameter. The browser of the iOS for example displays the date in the format of my setting local language/country.
    See also http://stackoverflow.com/questions/7372038/is-there-any-way-to-change-input-type-date-format

    To make a long story short, it is not possible to specify the display format for dates selectors, because this is not supported by the HTML5 specification.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Convert date format

    How to convert date format

    23/03/2010 to March 23, 10

    I'm passing date front end which is the format 23/03/2010 and happens in a query, and I do not get the results in the table it's March 23, 10

    How to apply the conversion of this attribute

    First to view the description of the column attribute_date1 table

    If its data varchar2, date, or timstamp type

    If attribute_date1 is the data type date

    Select * from mst_pindetails where attribute_date1 = to_date (March 23, 10 ',' DD-MON-RR')

    If attribute_date1 is varchar2

    Select * from mst_pindetails where to_date (attribute_date1, "DD-MON-RR') = to_date (March 23, 10 ',' DD-MON-RR')

Maybe you are looking for