DateFormat timestamp masks

I am writing a date generating routine based on the default DateFormat timestamp masks/time pattern Strings. This cycles through different Locales, and gives you the mask for each Locale for short, medium, long, and full format. For an API to an external script, I will need to hash the available Java timestamp masks vs. some predefined masks of my own.
My question is this. When I review the available Locales' timestamp masks, there are symbols I don't see listed in the documentation for SimpleDateFormat. For example, a.n.j. is one mask that is listed. There is no "j" symbol listed here:
http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
Does anybody know where I can get a complete list of definitions for these time pattern symbols?
-Jeff

Are you using "toLocalizedPattern()" when you print the pattern Strings? toLocalizedPattern() returns the pattern String of DateFormat in a locale specific format... meaning if the locale is set to de.DE (Germany), toPattern will return dd.MM.yy (for SHORT), but toLocalizedPattern will return tt.MM.uu (tag for day and Uhr for year). Could this be what you are seeing?

Similar Messages

  • Conversion of timestamp to_char in Apex variable & unable to use in PL/SQL

    Hi,
    I am passing a timestamp from Apex as a varaiable to a PL/SQL trigger.
    1) to_char in Apex, to_date in PL/SQL- Works
    Apex : to_char(systimestamp, ,'YYYY-MM-DD HH24:MI:SS')
    PL/SQL : to_date(systimestamp, ,'YYYY-MM-DD HH24:MI:SS')
    However I would like to get the fractions of the seconds.
    2) to_char in Apex variable, to_timestamp in PL/SQL - Does not Work
    Apex : to_char(systimestamp, ,'YYYY-MM-DD HH24:MI:SS.FF')
    PL/SQL : to_timestamp(systimestamp, ,'YYYY-MM-DD HH24:MI:SS.FF')
    Thanks.

    You have two commas between your value and timestamp mask.

  • Group output on date

    Hi all,
    I have a series of records stored in an Access table, each of them including a date/time.  I am attempting to output my records grouping them on my date/time column, but because each time is unique, I get a separtate group for each record. Is it possible in my CF query to eliminate the time and just pull the date info?  If so, how?  For example, I want all records dated 3/15/2013 to be grouped, instead of 5 different records for 3/15/2013 grouped 5 different ways because of their varying times.
    Thank you in advance!

    When you run your query, add a string constant to the select clause.
    select blah, blah, MyDateTimeField, 'update later' GroupField
    from etc
    order by MyDateTimeField
    Then loop through your results and use querysetcell to set GroupField to DateFormat(MyDateField, 'mask of your choice').

  • External table no data

    I created an external table with no errors, but when I try to issue sql on that external table there is no data. Here's a sub-set of my data and the sql used to create the external table. 10.2.0.2 on aix 5.2 64bit.
    "BoxC_SL.lwl"|106|"tzdpship52"|1|1|1/28/2008 0:00:00|12/30/1899 9:56:03|||||
    "Genshp_SL.lwl"|106|"tzdpship52"|1|1|1/28/2008 0:00:00|12/30/1899 9:56:04|||||
    "TRLAB-001B_600.lwl"|126|"\\Ibm1\tzsgprod63"|2|1|1/28/2008 0:00:00|12/30/1899 9:56:08|"14928758"|"89-5425.04"|||
    "PalC_SL.lwl"|106|"tzdpship52"|1|1|1/28/2008 0:00:00|12/30/1899 9:56:11|||||
    "SSCC_SL.lwl"|106|"tzdpship52"|1|1|1/28/2008 0:00:00|12/30/1899 9:56:12|||||
    CREATE TABLE "DMR"."LABELS"
    ( "LABEL_NAME" VARCHAR2(100),
    "PRINTER_NUM" NUMBER,
    "PRINTER_NAME" VARCHAR2(100),
    "QTY" NUMBER,
    "DUPLICATES" NUMBER,
    "PRINT_DATE" DATE,
    "PRINT_TIME" TIMESTAMP,
    "LOT" NUMBER,
    "PART" VARCHAR(25),
    "BATCH" VARCHAR(25),
    "WONUM" NUMBER,
    "ITEM" VARCHAR(25)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY "LISTENER_LOG_DIR"
    ACCESS PARAMETERS
    ( records delimited by newline
    nobadfile
    nologfile
    nodiscardfile
    fields terminated by "|" lrtrim
    missing field values are null
    label_name,
    printer_num,
    printer_name,
    qty,
    duplicates,
    print_date char(8) date_format
    date mask "MM/DD/YY",
    print_time char(8) date_format
    date mask "HH24:MI:SS",
    lot,
    part,
    batch,
    wonum,
    item
    LOCATION
    ( 'AUDIT_001.txt'
    REJECT LIMIT UNLIMITED;
    Table created.
    sys@DMRDEV> select * from dmr.labels where rownum < 10;
    no rows selected
    sys@DMRDEV> select count(*) from dmr.labels;
    COUNT(*)
    0

    Hi,
    Here we go
    SQL&gt; drop table t11;
    Table dropped.
    SQL&gt;
    SQL&gt; create table t11 (
    2 "LABEL_NAME" VARCHAR2(20),
    3 "PRINTER_NUM" NUMBER,
    4 "PRINTER_NAME" VARCHAR2(20),
    5 "QTY" NUMBER,
    6 "DUPLICATES" NUMBER,
    7 "PRINT_DATE" date,
    8 "PRINT_TIME" TIMESTAMP,
    9 "LOT" NUMBER,
    10 "PART" VARCHAR(25),
    11 "BATCH" VARCHAR(25),
    12 "WONUM" NUMBER,
    13 "ITEM" VARCHAR(25)
    14 )
    15 organization external (
    16 type oracle_loader
    17 default directory LISTENER_LOG_DIR
    18 access parameters (
    19 records delimited by 0x'0a'
    20 fields terminated by "|" optionally enclosed by '"'
    21 missing field values are null
    22 (
    23 "LABEL_NAME" ,
    24 "PRINTER_NUM" ,
    25 "PRINTER_NAME" ,
    26 "QTY" ,
    27 "DUPLICATES" ,
    28 "PRINT_DATE" DATE "MM/DD/YYYY",
    29 "PRINT_TIME" char(25) DATE_FORMAT timestamp mask "MM/DD/YYYY HH24:MI:SS",
    30 "LOT" ,
    31 "PART" ,
    32 "BATCH" ,
    33 "WONUM" ,
    34 "ITEM"
    35 )
    36 )
    37 location ('holidays.txt')
    38 )
    39 reject limit unlimited;
    Table created.
    SQL&gt;
    I am displaying the count only since you can query select * from t11 and check.. :-)
    SQL&gt; select count(*) from t11;
    COUNT(*)
    5
    Modify the data like this :- remove *""*
    BoxC_SL.lwl|106|tzdpship52|1|1|01/5/2008|12/30/1899 9:56:03|||||
    Genshp_SL.lwl|106|tzdpship52|1|1|01/28/2008|12/30/1899 9:56:04|||||
    PalC_SL.lwl|106|tzdpship52|1|1|1/28/2008|12/30/1899 9:56:11|||||
    SSCC_SL.lwl|106|tzdpship52|1|1|1/28/2008|12/30/1899 9:56:12|||||
    TRLAB-001B_600.lwl|126|\\Ibm1\tzsgprod63|2|1|1/28/2008|12/30/1899 9:56:08|14928758|89-5425.04|||
    Satisfied... Answered question correctly.. ;-)
    - Pavan Kumar

  • Migrating SQL Server DB to Oracle DB - probably EASY answer

    I completed the tutorial on migrating SQL Server DB to Oracle. When I try on my own database, it all migrated well except anything containing a datetime. When I run the oracle_ctl.bat file and view any of the log files, I see Record 1: Rejected - Error on table DBO_RIVERSIDEDB_NCWCD_TEST.TS6HOUR_TAIN, column DATE_TIME.
    ORA-01843: not a valid month. Do I need to change the first line of the file set NLS_DATE_FORMAT=Mon dd YYYY HH:mi:ssAM ? In the .dat file created from the unload_script.bat, the data starts out 1275<EOFD>2007-05-11 00:00:00.000<EOFD>74.900000000000006<EOFD><EOFD><EORD>1275<EOFD>. So my questions is about the date_format - is that the same for all SQL Server databases or do I need to enter something based on MY database? I am definitely a newbie so this is probably a super easy question. Thanks so much for any help!

    Hello,
    There are two different date format in SQL Server.
    1] DateTime : 2010-08-03 12:48:15.170
    2] SmallDateTime: 2010-08-03 12:48:00     
    Both the date will be inserted in Oracle Date column.
    Is there any automated way to generate datamove script to tackle these differences? I've around 200 tables to be migrated and there may be many such cases.
    The issue with Oracle SQL Developer setting i.e. Tools >Preferences> (Under) Migration> Data Move Option, there are two masks we can specify, one for Date Mask and other for Timestamp. How can I set both of these for converting data into Date, not in timestamp.
    Below is my .CTL file, none of below fields are timestamp, but since incoming data in in timestamp format, it is applying timestamp mask and eventually failing to insert data into table
    load data
    infile '[PARTSORDER].dat'
    "str '<EORD>'"
    into table admin.PARTSORDER
    fields terminated by '<EOFD>'
    trailing nullcols
    ORDERID ,
    GenDate "TO_TIMESTAMP(:GenDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
    Status "DECODE(:Status, CHR(00), ' ', :Status)",
    StatusBy ,
    StatusDate "TO_TIMESTAMP(:StatusDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
    Approved ,
    ApprovedBy ,
    ApprovedDate "TO_TIMESTAMP(:ApprovedDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
    TrackingNumber "DECODE(:TrackingNumber, CHR(00), ' ', :TrackingNumber)",
    SVOther "DECODE(:SVOther, CHR(00), ' ', :SVOther)",
    ShippedVia "DECODE(:ShippedVia, CHR(00), ' ', :ShippedVia)",
    ShippedBy "DECODE(:ShippedBy, CHR(00), ' ', :ShippedBy)",
    ShippedDate "TO_TIMESTAMP(:ShippedDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
    CompletedBy "DECODE(:CompletedBy, CHR(00), ' ', :CompletedBy)",
    CompletedDate "TO_TIMESTAMP(:CompletedDate, 'YYYY-MM-DD.HH24.MI.SS.ff3')",
    ORDERType "DECODE(:ORDERType, CHR(00), ' ', :ORDERType)",
    RMAID ,
    RMANumber "DECODE(:RMANumber, CHR(00), ' ', :RMANumber)",
    BackOrdered ,
    XORDERID ,
    PARTSORDERSENT "DECODE(:PARTSORDERSENT, CHR(00), ' ', :PARTSORDERSENT)",
    SHIPMENTID "DECODE(:SHIPMENTID, CHR(00), ' ', :SHIPMENTID)"
    Any help in this regard will be highly appreciated!
    Thanks
    Vinod

  • How to read date and time with Oracle_Loader (10g)

    ip pc username date time
    1.1.1.1 WS1 test 2000/01/01 01:01:01
    I am trying to read the date and time from data formatted as above from a .txt file.
    create TABLE test (IP char(20), OCID char(15), ID char(30), date_logon date, time_logon date)
    ORGANIZATION EXTERNAL (TYPE ORACLE_loader DEFAULT DIRECTORY phonebook
    ACCESS PARAMETERS (FIELDS TERMINATED BY WHITESPACE
    (IP char(20),
    OCID char(15),
    ID char(30),
    date_logon char(30) DATE_FORMAT DATE MASK "yyyy/mm/dd",
    time_logon char(30) date_FORMAT date MASK "hh24:mi:ss"))
    LOCATION ('test.log'));
    However, my external table returns a date (2007-05-01) AND the time for the time_logon column (e.g. 2007-05-01 01:01:01) . I just want the time (e.g. 01:01:01).
    What am I doing wrong?
    *I tried: date_logon char(30) DATE_FORMAT DATE MASK "yyyy/mm/dd hh24:mi:ss", reading both the date and time at the same time, but it doesn't work.
    Thanks.

    Justin, thank you so much for your help.
    When I try:
    SELECT a.ip, a.ocid, a.id, TO_CHAR( a.date_logon, 'DD-MON-YYYY HH24:MI:SS' )
    FROM test a
    date_logon entries are all dd-mon-yyyy and 00:00:00 (i.e. no time was stored).
    I don't have control over the text file, so I don't think I can make any changes to the formatting.
    I tried to declare the column as 'timestamp':
    date_logon char(60) DATE_FORMAT timestamp MASK "yyyy/mm/dd hh24:mi:ss",
    but time is still displayed as 00:00:00:000.... which leads me to suspect that the culprit is the space between date and time in the text file.
    Say if I have 2007/05/25 and 2007/05/01 16:19:23 in two separate date columns. Is it possible to grab the time from the second column and append it to the first column (while still retaining the DATE property, i.e. 2007/05/25 16:19:23).
    Thanks!

  • Finding date in database

    Hello Everyone,
    My dates are saved in an access database, as a date/time
    format.
    When i try to output all events of a particular day, and use
    the following query:
    <cfquery datasource="mydatasource" name="myevents">
    SELECT * FROM tbl_events WHERE mydate = #dateFormat(mydate,
    'd/mm/yyyy')#
    </cfquery>
    i don't get any results.
    If i try to use the date as a not formatted variable, i get
    an error.
    Should i try something else?
    Tnx!

    to correct Daverms, if you do want to use a pre-formatted
    date value in your query (with MS Access db) you should have 3 # on
    either side of it, i.e. ###DateFormat(date, "mask")###.
    note: this is for MS Access db only!

  • Can you specify format mask for date or timestamp columns

    Hi,
    Recently when I'm developing a PL/SQL application, I find that any format mismatch between data in table and format mask specified in to_date/to_timestamp function will cause exceptions. However, I'd like to make my application more robust and immune to this kind of problems, and know exactly which format mask to use for exactly what columns in db table.
    Is there a way in a table column to specify the format mask for date/timestamp columns such that I can know exactly what format mask to use when doing conversion? Also I don't want to depend on NLS_DATE_FORMAT specification, don't want to make a long case statement to check for every date format allowed by Oracle.
    Many thanks.

    As per my knowledge it can't be possible
    casuse if you entered '12/11/2007' date
    how oracle know that in date 12'th is the month or 11'th.
    The person who entered that date will also have confusions in future.
    either you have to fix one date format for your whole application (application configuration).
    or you have to store the date format in other column of the table.
    In case you set the date column to varchar and store all the dates without format then
    in future you may face problems in future while fetching the records, searching etc.
    Regards
    Singh

  • DateConversion with DateFormat to Timestamp

    Hello,
    I want to convert a string that has the format "dd. MMM yyyy" to a timestamp (what you get, wenn you call "getTime()" on a Date.
    I tried this:
    var oDateFormatter = sap.ui.core.format.DateFormat.getDateInstance({
                source: {
                    pattern: "dd. MMM yyyy"
                pattern: "timestamp",
            }, "de");
    console.log("date", oDateFormatter.format("21. Sep 2014"))
    But it gave me an error:
    Uncaught TypeError: undefined is not a function LocaleData.js:6
    When I remove the ,"de" I get this Error:
    Uncaught TypeError: undefined is not a function DateFormat.js:16
    Can someone help me?

    I need to use parse instead of format.

  • Calendar, Timestamp, TimeZone and DateFormat

    I need to persist date and time with a time zone information into database. In the application, I use the Calendar to represent the data and converse it to java.sql.Timestamp when I need to store the date into DB, use its reversed process to retrieve the data. The following process works for my need in some degree.
    1. create a Calendar instance
    2. convert it to Timestamp to match the DB field type and save into DB
    3. retrieve the field from DB and convert back to Calendar (from Timestamp)
    4. process the data with DateFormat for a given TimeZone GMT
    My problem with the above approach is that it yields an incorrect data when a date time in DB is already in time zone GMT stored by another system process.
    What is a good approach in the regard?
    Thanks for your information in advance.

    Isn't Timestamp always "in UTC"? If you want to remember a TimeZone, would you need to store that separately?
    Then again, I have this vague recollection there's a database type that combines timestamp and timezone, but does your DBMS have it?

  • Dateformat in cfgridcolumn using mask?

    I tried this...not working...How to format date in
    cfgridcolumn?.
    cfgridcolumn name="s_date" header="s_date" display="Yes"
    headerbold="Yes" headeritalic="No" width="100" mask="MM/DD/YYYY"
    please help.

    you can always format t in your query the cfgrid is based
    on...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Timestamp problem in Forms 10g

    In a 10g form (using 10g database, running on MS-W2000, Linux-Redhat)
    Record 1 is entered and saved at 12-JAN-2006 13:20:49.
    Record 2 is entered and saved at 12-JAN-2006 13:21:25.
    Then, these 2 records have the timestamp reversed upon retrieval:
    Record 2 12-JAN-2006 13:20:49.
    Record 1 12-JAN-2006 13:21:25.
    How can this happen? Any idea or suggestions? Please help.

    The date item property was defined as:
    data type: datetime
    maxium length:17
    initial value: $$DATETIME$$
    format mask: DD-MON-YYYY HH24:MI
    changed to ->
    data type: datetime
    maxium length:30
    initial value: $$DATETIME$$
    format mask: DD-MON-YYYY HH24:MI:SS
    It still does the timestamp switching for the record 1 and 2. If the record 1 and 2 are inserted more than a minute apart, then it works. Anything to do with database datetime setup?

  • TIMESTAMP WITH TIME ZONE

    Hi Team, will Import into a table I am getting the below error message
    Error Message
    Record 1: Rejected - Error on table MTN_BUNDLES_EXPIRY_MIG, column EXPIRY_DATE_T.
    ORA-01840: input value not long enough for date format
    The data client provide in .XLs file
    2013-08-31 17:14:56
    My Table Structure is
    CREATE TABLE tmp_mtnuga_3g_expiry_mig
        MSISDN_V            VARCHAR2 (50),
        expiry_Date_t         TIMESTAMP(6) WITH TIME ZONE
        status_date_t          TIMESTAMP(6) WITH TIME ZONE
        GOT_STARTER_PACK_V  NUMBER(10)
    I am using 2 option to import into a table
    First option using Toad ---> Import Table -- option here i am getting error like
    The format is not matched.
    Second option using SQL Loader-->
    LOAD DATA
    INFILE 'D:\ss\TT-Projects\Customer Apps\Client Dump\3GBundle.csv'
    BADFILE 'D:\dd\TT-Projects\Customer Apps\Client Dump\3GBundle.bad'
    DISCARDFILE 'D:\dd\TT-Projects\Customer Apps\Client Dump\3GBundle.dsc'
    INTO TABLE  tmp_mtnuga_3g_expiry_mig
    INSERT
    (MSISDN_V,
    EXPIRY_DATE_T,
    STATUS_DATE_T,
    GOT_STARTER_PACK_V
    Please guide me how solve the TimeStamp

    Check Part II SQL*Loader I can't remember when I last used it (being server side I use External Tables), but it should turn out something like
    LOAD DATA 
    INFILE 'D:\ss\TT-Projects\Customer Apps\Client Dump\3GBundle.csv'  
    BADFILE 'D:\dd\TT-Projects\Customer Apps\Client Dump\3GBundle.bad' 
    DISCARDFILE 'D:\dd\TT-Projects\Customer Apps\Client Dump\3GBundle.dsc' 
    INSERT INTO TABLE  tmp_mtnuga_3g_expiry_mig 
    fields terminated by ',' optionally enclosed by '"'
    (MSISDN_V, 
    EXPIRY_DATE_T char "to_timestamp_tz(:EXPIRY_DATE_T,'yyyy-mm-dd hh24:mi:sstzh:tzm')", 
    STATUS_DATE_T char "to_timestamp_tz(:STATUS_DATE_T,'yyyy-mm-dd hh24:mi:sstzh:tzm')", 
    GOT_STARTER_PACK_V 
    you must adjust the mask to match your data
    Regards
    Etbin

  • Oracle forms 10G -Version 10.1.2.0.2 will it support timestamp data type ?

    Hi all,
    We are having database server - oracle 10g enterprise edition R2,
    forms - Oracle forms 10G -Version 10.1.2.0.2 on windows 2000 professional.
    We have created a table which has a column of type "timestamp",the following is the structure.
    CREATE TABLE  "STOCK_AREA_MASTER"
            (     "STOCK_AREA_CODE"     NCHAR(5)       NOT NULL    ENABLE,
                  "STOCK_AREA_DESC"     NVARCHAR2(40)  NOT NULL    ENABLE,
                  "RECORD_STATUS"       CHAR(1)        DEFAULT 'A',
                  "USER_ID"             NVARCHAR2(20)  DEFAULT USER,
                  "TIMESTAMP"           TIMESTAMP (6)  DEFAULT CURRENT_TIMESTAMP)
    [\code]
    We  tried to invoke this table(stock_area_master) using database block wizard in forms 10g,we were expecting to see the columns in this table,but we got the following error
    FRM -10095 - Assertion failed
    on seeing the forms help for the error FRM-10095,We are getting the following message
    FRM-10095: Assertion failed in %s, at %s:%d. Cause:  An internal inconsistency was detected. Action:  Contact an Oracle support representative, and proceed with caution
    We have the following concerns.
    1.) is it possible to have datatype "timestamp" in forms 10g,our researches show that we can manipulate using datatime datatype in forms,our requirement is have to precision of 6 digits(millisecond - format - dd/mm/rr hh24:mi:ss:ssss),we are able query and view precision to the tune dd/mm/rr hh24:mi:ss:ssss,but we are unable to insert/update to this precision.
    We would appreciate if some one could throw some light on the above.
    Thanks in advance
    Regards
    Mohan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Mohan,
    Hm. Strange.
    I have reproduced the problem in my environment.
    I have also found, that building the block manually, seems to work, as long as you define the item with datatype Char in Form Builder. Inserts and updates using a value like "22-AUG-06 11:10:11,647354 AM" worked fine for the timestamp item.
    You may want to enforce some dateformat. I don't know whether that will work.
    Good Luck!
    Remco

  • How to write a Timestamp in an Oracle table?

    Hi,
    I am pretty new to SAP IdM and therefore have a very basic question.
    I am using SAP IdM 7.2 SP8 on Oracle.
    I was creating a job where I calculated some values from the database with a 'From Database' path.
    Then I wanted to store these values in a temporary table together with the timestamp when these were stored/calculated.
    Doing this in the Destination-Tab of the 'From Database'-path I got following error message...
    java.sql.SQLException: Missing IN or OUT parameter at index::2
    I did several tests and created a little test which recreates the problem...
    1. Create a Job with a 'From Database'-path
    2. In the source statement, insert...
    select
      'Test' AS Message,
      systimestamp AS TempDate
    from dual;
    3. In the destination tab add a temp Table and two columns. Since I want to add a date/timestamp-value I create a column of type 'DATE' here.
    4. After running the Job the error appears. (Here in german)
    Doing some additional tests I am able to add the date as a varchar2 if I convert the TempDate using a to_char()-function.
    Thus it seems like I misusing the Timestamp/Date data type.
    Do you have recommendations how I can add the Timestamp as a Date/Timestamp value to my table?
    Kind Regards, Andreas

    Hi,
    I really never got this to work properly and most of what follows is just my own rant caused by the annoyance of not getting this seemingly simple thing to work and are strictly my own theories not based on facts or actual knowledge of how Oracle or JDBC works, nor representing my employer in any way. Anyhow :-)
    Its possible that cause of the problem is that the timestamp is "destroyed" by NLS/JDBC when transferred from the database to the client. This is also one of the issues that varies a bit from version to version of the jdbc driver. Also the DATE datatype does not include fractional seconds, so you need to create the column as TIMESTAMP if you want that.
    The real fun thing with Oracle (or their jdbc driver) is that you can read a timestamp in the source and jdbc/NLS will convert it according to your locality setting, but you can't write what you read from Oracle back to Oracle.
    Just the same way you can use to_char to get a timestamp in a nice enough format, but when writing it to_date may not be able to parse the date back when using the exact same conversion mask...
    Example:
         select TO_CHAR(current_timestamp,'YYYYMMDD HH24:MI:SS.FFTZHTZM') from dual;
    Gives: 20140314 12:41:03.320000+0100. But both
         select TO_DATE('20140314 12:41:03.320000+0100','YYYYMMDD HH24:MI:SS.FFTZHTZM') from dual;
    and
         select TO_TIMESTAMP('20140314 12:41:03.320000+0100','YYYYMMDD HH24:MI:SS.FFTZHTZM') from dual;
    give errors.
    Rather than argue and fight with it I usually just end up using a To Database pass, check SQL Updating and write the Create Table and update/insert statements myself. Alternativly you can create the table with a trigger that automatically adds the timestamp on inserts/updates.
    1st To Database pass has no source, creates the temp table:
    The next pass has the source to read the data and insert it into the temp table:
    Then just use the current_timestamp function in the insert statement to keep it local and unconverted in the database engine...
    Br
    Chris
    Message was edited by: Per Krabsetsve

Maybe you are looking for

  • FPGA memory limitation

    Hi... I have tried to use more than 2 MB memory (using memory blocks) on FPGA. During compilation Xilinx tool chain generated error "AR #21955"....which is explained as memory limitation (in xilinx website). Can't we create memory blocks of more than

  • Changing BOM-items in Process Order not allowed

    that Hello, Mi client is asking me if it is posible, once created a Process Order, upon modifying the order (COR2), that the user can not change any of the cuantities and batches of the material list (BOM) updated in the Process Order. Is there any w

  • Operation not found in recipe, but available in process order

    Hi I find a strange problem. In recipe operations are 0010,0020 and 0050. With 0020, phase indicator is active and destination is given with sup opn as 0010. Nowhere is opn 0030 & 0040.  But when I create new process order I see opn 0030 and 0040 als

  • How to give input to an external system applicatio​n

    i have an application file.i need to control the inputs of that application through labview 8.5 automatically. is there any suggestions for that one? Regards Naresh G

  • ITunes Can't Find Some of My Songs & Videos

    My old G4 was filling up with song files, so I moved my iTunes Music over to an External WD Firewire Drive and all was well. Yesterday I migrated over to an Intel iMac, connected the drive and fired up iTunes and music filled my room. Then I clicked