DateTime format string issue

I tried to search for this but did not come across anything in forums or MSDN.
Why this behavior? Is this correct or just a bug?
string.Format("{0:M}", DateTime.Now) -> March 12
It is supposed to give the month number? 3?
This works:
string.Format("{0:M }", DateTime.Now) -> 3
Why do I need the space? I tried this with CultureInfo.InvariantCulture and same. I mean I can add the space, but why?
noorbakhsh حميد نوربخش

This formatter giving you the number of month is:
string.Format("{0:MM}",DateTime)
However, you are missing one of the 'M's. 
if you try the above code instead of yours, you will get the result of:
03 instead of 3
However, this is not the same as the above:
string.Format("{0:M}", DateTime.Now) -> March 12In this example you get Month and date together. In short, even a space is important.

Similar Messages

  • Migration Issues from Informix to Oracle (datetime format)

    Hello, i am performing a Migration from Informix to Oracle, drive by Migration Workbench, i have an error migrating data from datetime and date fields. I suppose its related by datetime and date format, cause the error tells "Incorrect day or month" when i am migrating data from informix. Targets Oracle database date format is DD/MM/YYYY and source`s Informix database date format like MM/DD/YYYY. Is there any way, in OMW, to specify the mask of datetime or date format to convert date strings from informix to oracle format? Or have i got migrate offline and modify control file to do that with sql*loader?
    How can i do that?
    Example, especify to_date('....', 'MM/DD/YYYY H24:MI:SS') format for migrating informix datetime fields to Oracle.

    The problem i have is, several tables witch contains date and datetime fields, at the same table in informix, by migrating drive by omwb to oracle, the date format i receive from informix at reading is DD/MM/YYYY and datetime format receiving is HH24:MI:SS. Migrating date and datetime types from informix to date, both types to date in oracle, i get an error while matching DD = HH24, MM = MI and YYYY = SS where nls_date_format is DD/MM/YYYY and, the same error matching HH24 = DD, MI = MM and SS = YYYY when nls_date_format is HH24:MI:SS.
    If i set nls_date_format as "DD/MM/YYYY HH24:MI:SS" i get the same error, cause reading data from informix results in data format "DD/MM/YYYY" for date fields and "HH24:MI:SS" for datetime fields.
    I have more than 200 tables in informix with this problem to migrate to oracle, i can solve by migrating offline, modifying datacontrol file to casting to_date format, but over 200 tables, 200 datacontrol files... is there any way for solving that by online migration in omwb?

  • Convert the date of string to datetime format 'MM/dd/yyyy' when the system date format is 'dd/MM/yyyy'.

    I need convert the date of string format 'MM/dd/yyyy' to datetime format 'MM/dd/yyyy' when the system date format is 'dd/MM/yyyy'.Since
    I need to search values based on date where my database datetime  is 'MM/dd/yyyy' format.

    In my opinion you should re-consider the assumption that the date picker returns a string. Maybe it is able to return a
    DateTime object directly instead of string. Then you will pass this value as a parameter of SQL query. This should work regardless of computer configuration.
    Otherwise, follow the previous string-based approaches.

  • DateTime Format issue

    Hi All,
    I have an application developed in SOA 11.1.1.4. The SOA application receives live feed from third party and stores into database.
    The problem is the third party feed contains datetime field value as '2011-04-29T13:25:30.0000000+10:00' which the DB adapter does not seem to like. The String value looks as per the expected iso 8601 xs:dateTime format.
    Please suggest what to do? The error details are as below.
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [ODS_EVENT.OdsEvent]. Caused by Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.1.2.v20101206-r8635): org.eclipse.persistence.exceptions.ConversionException Exception Description: The object [2011-04-29T13:25:30.0000000+10:00], of class [class java.lang.String], could not be converted to [class java.sql.Timestamp]. Internal Exception: BINDING.JCA-11636 Could Not Convert Timestamp Exception. Unable to convert a string value in the xml to a java.sql.Timestamp. Even though databases accept strings representing timestamps in a variety of formats, the adapter only accepts strings representing them in xml ISO dateTime format. The input value must be in *iso 8601 xs:dateTime format*, i.e. *YYYY-MM-DDTHH:MM:SS.sss-07:00* . Please see the logs
    Thanks

    Before invoking the DB adapter use a XSLT to convert the date format. There are lots of functions in XSLT which can let you do this like
    +<xsl:value-of select='xp20:format-dateTime(InputDate,"[Y0001]-[M01]-[D01]")'/>+
    In case none of them, try converting using a java embedding node or manipulating the date like a string in XSL.
    -AR

  • Converting String to datetime format

    I have a String which is in 04-DEC-78 format, I want it to be inserted in to a field in sql database.If I map directly I am getting
    "Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: The input data for the field/parameter "e_date" is invalid according to the expected SqlDbType DateTime. ---> System.FormatException: The string '04-DEC-65' is not a valid
    AllXsd value.
    Tried to convert the string to datetime format in Mapping but getting error
    public DateTime FormatCheck(string param1)
    IFormatProvider culture = new CultureInfo("en-US", true);
    return  DateTime.ParseExact(param1, "dd/MM/yyyy HH:mm:ss.fff", culture);
    Inline Script Error: The type or namespace name 'CultureInfo' could not be found (are you missing a using directive or an assembly reference?) 
    Help me out!!

    HOLD ON!
    Let's try to clear this up. If the input data is "04-DEC-78" then, sorry, none of the code posted so far will work.
    "04-DEC-78" is not directly parsable so the .ParseExact format must match the source.
    The format for xs:datetime is ISO 8601 which is like yyyy-MM-ddTHH:mm:ss-[offset].  Internally the sqlBinding will cast the XsdDateTime (the .Net xs:datetime implementation) to a SqlDateTime.
    One very, very important missing detail is the type of the SQL parameter.  Is it (SQL) datetime or string?
    If the SQL parameter is datetime, then you can use this:
    public string FormatCheck(string param1)
    return DateTime.ParseExact(param1, "dd-MMM-yy", System.Globalization.CultureInfo.InvariantCulture).ToString("s");

  • Converting Datetime in String in map

    Hello all,
    I am reciving a message from a system A, in which I am receiving field DOB as datetime and I am sending same message to system B , problem is that system B not able to handle DOB at there end as datetime - I have checked at BizTalk side that DOB
    is going correct so issue is at system B side. now system B wants BizTalk system to send them DOB field as string.
    What could be the possible way's to do this ?
    1) We can change both schema System A schema and System B schema and map them is one way .
    2) Can we take datetime and convert it to string using some funtoid ? and send that string to system B ? How ?
    Is there other way for this ?
    Thanks,
    Nitin
    Thanks and Regards, Nitin.

    Hi Nitin,
    First find out how the destination system consumes the datatime value. Some system would consume the value in the datetime field as string. It could be the problem in the format of the datetime. Ask them about their expected datetime format. For example
    "2004-09-23T10:20:00.000-05:00" is the standard datetime format produced when you set a field as xssd:datetime. May be the destination system not able to handle this format.
    If the issue is in the datatype i.e. in the way client consume, the datatype of the destination schema matter:
    Then update the destination schema's to have string datetype. And simply map the value from the soruce's datetime field to destination schema's update string field. You don't need any scripting fuctiond to convert the data type. BizTalk's mapper would handle
    it.
    If the issue is in the date format  i.e. in the way client consume, the datatype of the destination schema doesn't matter, and if the actual problem is in the format:
    Then update the destination schema's to have string datetype. Use a scripting fuctiond as suggested by others and do the conversion in the script.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How To Get Only Month or Only Year from datetime format of yyyy-mm-dd

    Hi SQL gurus,
    I have field has datetime format of yyyy-mm-dd (ie. 2014-11-28).  Could anyone please educate me on how to extract only month (ie. November but not 11) and only year (ie, 2014) from 2014-11-28.  I writing two report have title of Number of
    sick leaves on November  and Number of sick leaves in 2014.  I am planning to extact 11 from 2014-11-28 and display as November on report title and the same goes for 2014.  Unless you have better non complicated way.   Thank you
    very much in advance.  DingDong!!

    There are multiple ways
    Month name
    SELECT DATENAME(mm,@DateParam)
    SELECT FORMAT(@DateParam,'MMMM')
    Year
    SELECT FORMAT(@DateParam,'yyyy')
    SELECT DATEPART(yy,@DateParam)
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • SQL LOADER and ORA-01861: literal does not match format string

    Hi,
    I've to load data through control_file(.ctl) into oracle table through sqlldr. Oracle 11g, win xp.
    as soon as I use - sqlldr dss/dss control=orders.ctl I get error or nothing.
    Text file that is generated after loading fails has the following error.
    Record 1: Rejected - Error on table ORDERS, column O_ORDERDATE.
    ORA-01861: literal does not match format string
    I have checked the format of data to be loaded into Orders table is like this : *1996-01-02.*
    I checked the format of data in my database by querying sysdate from dual i.e. 10-JAN-10
    I thought that changing its format might solve my problem so i tried this:
    SQL> alter session set nls_date_format='YYYY-MM-DD';
    Session altered.
    SQL> select sysdate from dual;
    SYSDATE
    2010-01-10but still i'm getting the same error. I've to load millions of data. how I can solve this issue.
    Please suggest.
    Thanks alot.
    Best Regads,
    Kam

    Hi,
    It's strange ....nobody knew it?. I think this type of load problem will be very common isn't it.... where date column data is in a different format than in the db i.e.
    How to change *1996-01-02* in the Control_file to make it able to load in the table where sysdate is like this: *11-JAN-10*
    Sample data to be loaded is :
    1|36901|O|173665.47|1996-01-02|5-LOW|Clerk#000000951|0|nstructions sleep furiously among |
    Desc Orders
    O_ORDERDATE NOT NULL DATEI have tested this by creating a test table and a test control file by omitting this O_ORDERDATE and then everything was fine, data was inserted but don't know how to load this DATE also.
    Also not able to understand about POSITION in the control file...?
    Regards,
    Kam

  • Need help in datetime format.

    hi there,
    currently, i have problem in converting datetime format into this pattern (yyyy-MM-dd).
    I could able to convert it in JSTL which is
    <c:set var="dates"><fmt:formatDate value="${now}" type="DATE" pattern="yyyy-MM-dd"/></c:set>
    <sql:query var="countLeave"
         sql =" SELECT * FROM VCST_EMPLOYEE_LEAVE WHERE CAST(FLOOR(CAST(leave_from AS FLOAT))AS DATETIME) = ? ">
              <sql:param value="${dates}"/>
         </sql:query>
    From the JSTL code above i would like to convert in Java code. I have no idea on how to convert it especially not converting the datetime datatype from MSSQL into String format.
    Is there any way of doing it. Thank you.

    try this
    // Format the current time.
    java.text.SimpleDateFormat formatter
    = new java.text.SimpleDateFormat ("yyyy-MM-dd");
    java.util.Date currentTime_1 = new java.util.Date();
    String dateString = formatter.format(currentTime_1);

  • Number to a datetime format

    I am trying to convert a number and a date field to a date time field and I am having issues.
    COl1 COl2
    11/23/2005 90359
    12/31/2005 123456
    02/03/2006 234534
    I want my output as
    11/23/2005 9:03:59
    12/31/2005 12:34:56
    02/03/2006 23:45:34
    Please let me know...

    Or
    michaels>  with t as
         (select '11/23/2005' col1, '90359' col2 from dual union all
          select '12/31/2005', '123456' col2 from dual union all
          select '02/03/2006', '234534' col2 from dual)
    select to_char(to_date(col1 || lpad(col2,6,0),'MM/DD/RRRRHH24MISS'),'MM/DD/RRRR HH24:MI:SS') x
      from t
    X                 
    11/23/2005 09:03:59
    12/31/2005 12:34:56
    02/03/2006 23:45:34Leave away the final formating TO_CHAR() if you really want a true »datetime« format!
    Message was edited by:
    michaels

  • "Literal Match Doesnot match format string" error

    Hi All,
    i created a view based on the querry below.
    The view runs fine and gives me correct result.
    but when i add the view to report it trows me oracle error ORA-01861 which is literal match doesnot match format string.
    did anyone face this problem before.
    Please Help
    SELECT q, source, a_string_name, day_f, clock_time_from, clock_time_to,
              ongoing, closed,
              rejection,done,notdone
         FROM (SELECT   DECODE (q_id,2, 'LEDGER_TYPE',
                                'N/A'
                               ) q,
                        DECODE (source_code, NULL, 'NO SOURCE', source_code) source,
                        a_string_name, day_f,
                        TRUNC (TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                    'DD-MON-YY'
                                        || ' '
                                        || hr.clock_time_from,
                                        'DD-MON-YY HH:MI:SS AM'
                               'HH'
                              ) clock_time_from,
                          TRUNC (TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                      'DD-MON-YY'
                                          || ' '
                                          || hr.clock_time_to,
                                          'DD-MON-YY HH:MI:SS AM'
                                 'HH'
                        + 3599 / 86400 clock_time_to,
                        SUM
                           (CASE
                               WHEN try_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_from,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND try_dt <=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND user_id <> 'Inbound'
                                  THEN 1
                               ELSE 0
                            END
                           ) ongoing,
                        SUM
                           (CASE
                               WHEN try_finish_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_from,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND try_finish_dt <=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND ai.quit_point_id IN (5, 6)
                               AND user_id NOT IN
                                               ('Inbound', 'Nightly Maintenance')
                                  THEN 1
                               ELSE 0
                            END
                           ) closed,
                        SUM
                           (CASE
                               WHEN try_finish_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_from,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND try_finish_dt <=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND ai.quit_point_id IN (2, 4)
                               AND user_id NOT IN
                                               ('Inbound', 'Nightly Maintenance')
                                  THEN 1
                               ELSE 0
                            END
                           ) rejection,
                        SUM
                           (CASE
                               WHEN try_finish_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_from,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND try_finish_dt <=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND user_id <> 'Inbound'
                                  THEN 1
                               ELSE 0
                            END
                           ) done,
                         SUM
                           (CASE
                               WHEN try_finish_dt >=
                                      TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                           'DD-MON-YY'
                                               || ' '
                                               || hr.clock_time_to,
                                               'DD-MON-YY HH:MI:SS AM'
                               AND user_id <> 'Inbound'
                                  THEN 1
                               ELSE 0
                            END
                           ) notdone
                         FROM report.attempts ai,
                        report.log_hour hr,
                        report.client ta
                  WHERE ai.source_code = ta.agency(+)
                    AND ai.user_id <> 'InActiveAttemptsUser'
                    AND try_dt >=
                           TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1), 'DD-MON-YY')
                                    || ' '
                                    || '05:00:00',
                                    'DD-MON-YY HH24:MI:SS'
                    AND try_dt <=
                           TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1), 'DD-MON-YY')
                                    || ' '
                                    || hr.clock_time_to,
                                    'DD-MON-YY HH:MI:SS AM'
                    AND try_finish_dt >= try_dt
                    AND q_id = 2
               GROUP BY DECODE (q_id,2, 'LEDGER_TYPE', 'N/A'),
                        DECODE (source_code, NULL, 'NO SOURCE', source_code),
                        a_string_name,
                        TRUNC (TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                    'DD-MON-YY'
                                        || ' '
                                        || hr.clock_time_from,
                                        'DD-MON-YY HH:MI:SS AM'
                               'HH'
                          TRUNC (TO_DATE (   TO_DATE (TRUNC (SYSDATE - 1),
                                                      'DD-MON-YY'
                                          || ' '
                                          || hr.clock_time_to,
                                          'DD-MON-YY HH:MI:SS AM'
                                 'HH'
                        + 3599 / 86400,
                        day_f)

    Please re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Trouble with SQL datetime format

    I have written a VI to import a CSV file into a SQL data table but I
    cannot get it to work when using a table with "datetime" data
    format.  It will import into a new table with undefined data
    formats as "varchar" format but no luck when going into a table with the "datetime" data
    format.   I need the datetime format for date/time queries later.
    I have attached a zip file of my VI and the CSV file.  Is there a problem with my CSV format or I am I doing
    something else wrong here?
    Please help.
    Thanks,
    Greg
    Attachments:
    SQL issue.zip ‏54 KB

    Greg
    I have just tried to insert your data into a SQL Server (MSDE) database.
    I found that the INSERT data didn't work. The TRUE for Create Table didn't seem to do any thing. So I created a table using labview like this
    And this is its design.
    I then run the vi again and it starts to work with no issues. So it looks like the Create Table?=TRUE for the INSERT doesn't seem to work on SQL Server. It looks like you need to create the table first.
    Here is your data in the database
    Let me know what you think
    David
    Message Edited by David Crawford on 04-28-2006 11:17 AM
    Attachments:
    Your Data.jpg ‏32 KB
    Create Table.jpg ‏20 KB
    Table Design.jpg ‏15 KB

  • Premiere sends EDL with 'invalid timecode format string'

    Following the suggestions in this thread, I am attempting to send an EDL of a Premiere sequence to Speedgrade.
    When I attempt to import the EDL into Speedgrade I get this error message:
    ERROR
    In point timecode is invalid. Invalid timecode format string(hours): '23813+20'
    in edit 1
    File: 001 LR001 V C 2813+20 23815+17 0:00 1+37
    Line: 2
    I've worked very rarely with EDLs but have read the Speedgrade and Premiere guides. I must be missing something but can't tell what.  Here's the details from my project:
    I'm editing in 24fps. The video files are generated in After Effects from DPX files. The timecode is based on the DPX file names, with the hour matching the Lab Roll number (so 11:00:00 for Roll 11)
    I export an EDL in CMX3600 format. I've tried both default settings and without audio. Same results. I even get the same result if I make a sequence from a single clip and try exporting that EDL.
    I don't think this is a Speedgrade issue, because if I try re-importing the EDL into Premiere, it seems like all the clips are only one frame long.
    Any suggestions about what I might be doing incorrectly would be greatly appreciated.
    Thanks,
    Lev         

    Are you wanting to just simply go from Premiere to Speedgrade? If so why not just use the "send to speedgrade" choice. Also I wanted to point out in the original thread you actually said you didn't want to use speedgrade, I've never used a EDL with speedgrade so I have 0 ideas there, but have you tried just using Premiere's built in send to speedgrade function?

  • ORA-01861 literal does not match format string, ORA-02063preceding line fro

    We have upgraded a client from 8.0.5 to 9.2.03. The following query is called from a report that was built using Cold Fusion5. It worked in 8.0.5, but not 9.2.03. When you run the report you get the errors
    [Oracle][ODBC][Ora]ORA-01861: literal does not match format string ORA-02063: preceding line from FRPE
    Here's the query:
    SELECT x.acct, x.obj, x.offn, x.status, x.asofdate, max( decode( x.func_id, 1, t, null ) ) UOB, max( decode( x.func_id, 12, t, null ) ) COB, max( decode( x.func_id, 24, t, null ) ) Rate_Warning, max( decode( x.func_id, 2, t, null ) ) Sector_Change, max( decode( x.func_id, 2006, t, null) ) FRRFRD , max( decode( x.func_id, 2003, t, null ) ) No_Tcode , max( decode( x.func_id, 2004, t, null) ) No_Sector FROM ( SELECT a.acct, a.func_id, count(*) cnt, 'Fail' t, b.obj, b.offn, b.status,a.asofdate FROM frpfaud@FRPE a, frpair@FRPE b WHERE a.acct=b.acct AND a.asofdate='2008-02-29 00:00:00' AND b.bnk not like 'B%' and b.obj not in ('KL') and b.obj in ('GAF') GROUP BY a.acct, a.func_id,b.obj,b.offn,b.status,a.asofdate) x GROUP BY x.acct, x.obj,x.offn,x.status,x.asofdate
    Now, this query will not work by running straight through SQL worksheet in either the 8.0.5 or 9.2.03 regions. So I guess it has something to do with Cold Fusion- which I know nothing about. Has anyone had any experience using Cold Fusion to issue a query? What would be the cause of the difference between the Oracle versions? That is the only thing that changed.
    Thanks for any input.

    I actually want the date format of DD-MON-YY. Which, from what I understand, is the default format for both Oracle 8.0.5 and 9.2.03. I'm trying to figure out why it is now displaying as 'yyyy-mm-dd hh24:mi:ss'. I could convince the client that the code needs changing if I had evidence that this version of Oracle (9.2.03) used a different default date format. Or if Cold Fusion pulls the date differently. Ughh.
    Here are the database parameters:
    SQL> show parameter nls_date_format
    NAME TYPE VALUE
    nls_date_format string
    select sysdate from dual;
    SYSDATE
    26-FEB-08
    1 row selected.
    select * from nls_session_parameters
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    17 rows selected.
    select * from v$nls_parameters
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    19 rows selected.

  • SSIS OLE DB Data Source: literal does not match format string

    Dear All,
    this is my first post on this forum, so sorry if I choose wrong category for this question, but I stuck...
    I'm using SSIS from SQL Server 2k8 R2 in Windows Server 2k8 R2. I have installed Oracle Client 10.2.0.2 32 bits and Oracle Client 10.2.0.4 64bits. I want to connect to Oracle 8i and Oracle 9i by these clients.
    Unfortunately when I want to see a preview, only error occurs to me:
    ORA-01861: literal does not match format string (OraOLEDB)
    I have read a lot about this issue but nothing helps me (to_date, cast, convert etc.).
    This is query which I use:
    SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
    PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
    BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
    UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
    FROM APPS.DW_PRODUCTION
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE &lt; '99991231'I have investigated that the problem is with TRANSACTIONDATE column (which is VARCHAR2 data type in database).
    I want also inform You that the same query in SSIS 2005 on Windows 2005 64 bits worked fine.
    Could You help me to find a solution?
    Thanks in advance,
    Łukasz - chalunster
    PS. Sorry for my english
    Edited by: BluShadow on 16-May-2011 15:15
    put {noformat}{noformat} tags into the message and encoded the &lt; symbol so that it formats correctly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    user10450810 wrote:
    Dear All,
    this is my first post on this forum, so sorry if I choose wrong category for this question, but I stuck...
    I'm using SSIS from SQL Server 2k8 R2 in Windows Server 2k8 R2. I have installed Oracle Client 10.2.0.2 32 bits and Oracle Client 10.2.0.4 64bits. I want to connect to Oracle 8i and Oracle 9i by these clients.
    Unfortunately when I want to see a preview, only error occurs to me:
    ORA-01861: literal does not match format string (OraOLEDB)
    I have read a lot about this issue but nothing helps me (to_date, cast, convert etc.).
    This is query which I use:
    SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
    PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
    BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
    UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
    FROM APPS.DW_PRODUCTION
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE < '99991231'
    I have investigated that the problem is with TRANSACTIONDATE column (which is VARCHAR2 data type in database).
    I want also inform You that the same query in SSIS 2005 on Windows 2005 64 bits worked fine.
    Could You help me to find a solution?
    Thanks in advance,
    Łukasz - chalunster
    PS. Sorry for my englishHi
    Welcome to OTN Forums!
    Are you sure you are using following code
    SELECT COMPANYID, TRANSACTIONTYPE, TRANSACTIONDATE,
    PRODUCT, PRODUCTIONSITE, BATCHNUMBER,
    BINNUMBER, QUANTITYSTOCKUNIT, QUANTITY,
    UNITOFMEASURE, TRANSACTIONCURRENCYID, COST
    FROM APPS.DW_PRODUCTION
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE < 'If yes, then youistake is there,
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE < 'your script is not ended you can use this
    WHERE TRANSACTIONDATE >= '20050101'
    AND TRANSACTIONDATE < '20110101'or
    WHERE to_date(TRANSACTIONDATE,'YYYYMMDD')  >= to_date('20050101','YYYYMMDD')
    AND to_date(TRANSACTIONDATE,'YYYYMMDD') < to_date('20110101','YYYYMMDD')Edited by: Mahir M. Quluzade on May 16, 2011 6:59 PM

Maybe you are looking for

  • Live Migration with Different CPU versions on the hosts, win 2012R2 Datacenter

    Hello This question have been asked in different forums but when I read the the thread's I feel that I get mixed answers. And most answers are dating from 2012 (Win 2008R2), I don't know if they are still correct in win 2012R2. So now I ask the quest

  • 8.1.7. on Red Hat 7.0

    I tried to install Oracle 8.1.7 standard edition on Red Hat Linux 8.1.7. After installing all the selected products the network configuration assistant started and never returned. When I try to use any of the assistants (netasst, dbassist, ...) they

  • IPod Touch 4th Gen Does Not Sync

    Basically had an black iPod 4th generation for 2 years this christmas. It worked perfectly til September last year and the suddenly out of no where it seemed to stop syncing. I click the sync button and it seems to either do nothing and the sync butt

  • Use handling units for subcontracting

    Hello Experts, we are currently trying to improve our subcontracting process. The stock of material is provided to the vendor in boxes, he processes the articles and delivers them back to us in the same boxes. To be able to identify the boxes when th

  • ABAP Certification-Reg

    Hii All, I want to take ABAP Certification test. What is the procedure to take this test? Is it mandatory to take training at Siemens and then appear for the test? Or just take the test on my own? Presently, I am working in an organisation. PLease he