Date mask

Hello,
Anybody knows how to make a mask for the following date?
to_date('2002-08-07T13:51:50.000-07:00', yyyy-MM-ddHH24:MI:ss')
I don't know how to represent 'T' and the part after the 'ss' :((
Thanks

okay... I'm totally in the dark as to what the T means,
but I'm guessing you want something like this:
select to_timestamp_tz('2002-08-07T13:51:50.000-07:00',
'YYYY-MM-DD"T"HH24:MI:SS.FF3TZH:TZM')
from dual
/

Similar Messages

  • How to do Data Masking in SAP?

    Hello All,
    How to do Data masking in SAP, My Client has a production data, so we have to create a development environment with this production data but the data should be masked/changed with some dummy data, and it should work as test data for developments in dev environment.
    Please tell me the Process? Approach? and how to do it in SAP?
    Regards,
    Srikanth

    Hi,
    this kind of tools already exist in SAP, if you client have some money to spend : TDMS
    regards
    Fred

  • Set date mask

    Hi Gurus, I have to set date as per the company code REGUP-BUKRS using sap-script.  I am unable to get the date..
    /: IF &REGUP-BURKS& EQ 2000
    /: SET DATE MASK = 'DD/MM/YYYY'
    &REGUP-BLDAT&
    /: ENDIF
    This there is anything wrong in this code  ?

    Please use below syntax in SE71 Text editor ( Before displaying date)
    /:  PERFORM GET_DATE_FORMAT IN PROGRAM ZGET_DATE
    /:  USING &REGUP-BLDAT&
    /:  CHANGING &DATE&
    /:  ENDPERFORM
    Now goto SE38 -> create program(ZGET_DATE) -> now use below syntax
    FORM GET_DATE_FORMAT
      tables in_tab  structure itcsy
             out_tab structure itcsy.
    lOCAL VARIABLES
    data: LV_DATE(10) TYPE C,
             LV_DAY(2),
            LV_MON(2),
           LV_YEAR(4),
           LV_FDATE(10) TYPE C.
    CLEAR : LV_DATE,
                     LV_DAY,
                    LV_MON,
                    LV_YEAR,
                    LV_FDATE.
    read table in_tab with key NAME = 'REGUP-BLDAT'.
      if sy-subrc eq 0.
        LV_DATE = IN_TAB-VALUE
      endif.
    Date Formatting
    lv_year = lv_date+0(4).
    lv_mon = lv_date+5(2).
    lv_day = lv_date+8(2).
    concatenate lv_day '/' lv_mon '/'  lv_year into lv_fdate.
    read table out_tab with key NAME = 'DATE'.
      if sy-subrc eq 0.
        out_tab-value = lv_fdate.
    modify out_tab index sy-tabix.
      endif.
    ENDFORM.
    You can use same logic for all dates.
    Thanks
    Seshu

  • Data Masking Pack in Oracle 11g

    Hello,
    I'm trying to evaluate the data masking functionality of Oracle on either 10g or 11g database.
    Can anyone tell me what should be installed to reach this funcionality?
    Thank you in advance,
    Luka

    I guess you meant this one,
    http://www.oracle.com/technology/obe/11gr1_db/security/datamask/datamask.htm
    Thsi pack is a part of EM suite. So you need to download the EM to use it.
    http://www.oracle.com/enterprise_manager/index.html
    Aman....
    Edited by: Aman.... on Sep 26, 2008 7:13 PM

  • Field Level Validation - Date Mask

    Hi all
    I need some Java Script to validate a date mask in a field. Format must be:
    dd-mm-ccyy.
    Can anyone help me?
    Thanks

    Here is a copy of the script I set up to do validation.
    I not only wanted it to check for a valid date,
    but I wanted to store leading zeros, but not make the user type them in.
    One of the things you have to do is to set the format mask for the date to MM-DD-YYYY for each date field in your form.
    Here it is:
    var DayArray =new Array(31,28,31,30,31,30,31,31,30,31,30,31);
    var MonthArray =new Array("01","02","03","04","05","06","07","08","09","10","11","12");
    var firstDash = null;
    var lastDash = null;
    var inYear = null;
    var inMon = null;
    var inDay = null;
    var today = new Date();
    var curFullYear = today.getFullYear();
    var strYear = String(curFullYear);
    var thisCentury = strYear.slice(0,2);
    var thisYear = strYear.slice(2);
    var numThisYear = Number(thisYear);
    inDate = theElement.value;
    if (inDate.length == 0) return true;
    /* Check for a valid format. */
    var filter=/^[0-9]{1,2}-[0-9]{1,2}-[0-9]{2,4}$/;
    if (! filter.test(inDate))
    { alert("Please enter date in MM-DD-YY or MM-DD-YYYY format.");
    theElement.focus();
    theElement.select();
    return false;
    /* Pick off the indices (zero-based) of the two dashes. */
    firstDash = inDate.indexOf("-");
    lastDash = inDate.lastIndexOf("-");
    if ((firstDash == lastDash) | | (firstDash == -1) | | (lastDash == -1))
    alert("Please enter date using dashes (-), e.g. MM-DD-YY or MM-DD-YYYY.");
    theElement.focus();
    theElement.select();
    return false;
    /* Pick off the month and day (pad with leading zero, if necessary). */
    inMonth = inDate.slice(0,firstDash);
    if (inMonth.length == 1) inMonth = "0" + inMonth;
    inDay = inDate.slice(firstDash+1,lastDash);
    if (inDay.length == 1) inDay = "0" + inDay;
    /* Pick off the year. Filter ensures 2, 3, or 4 digit year. 4 is what we */
    /* want, so we only have to deal with 2 or 3 digit years. */
    inYear = inDate.slice(lastDash+1);
    /* If the user entered a two digit year, figure out which century to pad. */
    if (inYear.length == 2)
    /* Adding 5 years is still within the current century... */
    if ((numThisYear + 5) < 100)
    /* 00 to (current year + 5 years) should use the current */
    /* century; otherwise, use the previous century. */
    if (inYear > (numThisYear + 5))
    inYear = (thisCentury - 1) + inYear;
    else
    inYear = thisCentury + inYear;
    else
    /* Adding 5 years would rollover the century, use the current century */
    inYear = thisCentury + inYear;
    /* A 3 digit year is an error. */
    if (inYear.length == 3)
    alert("Please enter date with either a 2 digit or 4 digit year.");
    theElement.focus();
    theElement.select();
    return false;
    /* Check for a valid month. */
    var filter=/01|02|03|04|05|06|07|08|09|10|11|12/;
    if (! filter.test(inMonth))
    alert("Please enter a valid month.");
    theElement.focus();
    theElement.select();
    return false;
    /* Check for leap year. */
    N=Number(inYear);
    if ( ( N%4==0 && N%100 !=0 ) &#0124; &#0124; ( N%400==0 ) )
    DayArray[1]=29;
    /* Check for valid days for the month. */
    for(var ctr=0; ctr<=11; ctr++)
    if (MonthArray[ctr]==inMonth)
    if (inDay > DayArray[ctr] &#0124; &#0124; inDay <= 0)
    alert("Please enter a valid day.");
    theElement.focus();
    theElement.select();
    return false;
    /* Output the fixed up date. */
    theElement.value = inMonth + "-" + inDay + "-" + inYear;
    return true;
    Regards,
    Rene'

  • Calender prompt date Mask

    Hi Gurus,
    I am using 10.1.3.4.1...
    I have a calendar prompt with PS variable "date" and I want to show this variable in Title view subtitle so I wrote like @{date}[MM/DD/YYYY] in subtitle but the date mask is not reflecting ..How to change this date mask?I want show calendar prompt value(which is in format yyyy-mm-dd hh:mm:ss)like MM/DD/YYYY format..any help

    Hi User,
    I have tried the same thing my system it is working fine.
    ex : My date format is MM/DD/YYYY value is 4/01/2000
    I have add title view in my report and apply presentation variable = @{satya} then save the report it showing correct format only.
    MY system OS == WIndwos7 32 bit.
    OBIEE = 10.1.3.4.1
    That is not possible in my case....I have some restrictions?
    In that case add date column in your report apply cast function lke below (OR) apply the below cloumn in narrative view like @1.
    cast(your date column as date)
    I have tried the above method also it working fine.
    Hope this help's
    Thanks
    satya

  • What is Data Masking in SAP

    Hi,
    I would like to know about u201CData Masking".  I have never heard of this term before. As per the little information, that I got, it seems to be related to - masking (conversion) of real production data to masked test data in order to run tests on real production data.
    Anyone plz help this concept and how to make the data masking in SAP
    Point will be sure
    Regards,
    Mohana

    hey Check out this,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b43e2b4d-0b01-0010-c191-cba32880cb95
    Hope that's usefull.
    Regards.
    Midhun Abraham

  • What is the use of Oracle Data Masking?

    Hi,
    Iam using HCM 9.2, PT 8.53, DB.11.2.0.2.
    What is this particular navigation does??
    PeopleTools >Utilities> Administration >Oracle Data Masking
    does this encrypts the value in the specified field??
    Suggestions welcomed !!
    Aravind.

    Repeated start/stop or redeploy causes memory leak (7393267)
    Repeated start/stop or redeploy of an application causes memory to leak and the server has to be restarted to clean up the memory. New applications created in JDeveloper 11.1.1.0.1 will be configured with a Weblogic Application Lifecycle Listener to handle this scenario. For older applications migrated to 11.1.1.0.1, the listener will need to be manually added to the weblogic-application.xml of the application to solve this issue.
    <listener>
    <listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>
    </listener>
    From : http://www.oracle.com/technetwork/developer-tools/jdev/knownissues-096030.html

  • Set date Mask in Sapscript

    hi all,
    Requirement is to diplay todays date in MM.DD.YYYY format in a smartform layout.
    We have used the command
    /:SET DATE MASK = 'MM.DD.YYYY'
    /:SET COUNTRY 'US'
      &sy-datum&
    But the date appears in the user format DD.MM.YYYY.
    Whys the set date command not working here as expected ?
    Your ideas appreciated.
    Rgds,
    stock

    Hi  Stock Sys,
    Formatting Date Fields: SET DATE MASK
    To define the formatting of date fields, use the SET DATE MASK control command. Executing this command causes all subsequent date fields to be printed using the specified format.
    Syntax:
    /: SET DATE MASK = 'date_mask'
    In the date mask, you can use the following codes:
    DD: day (two digits)
    DDD: day name - abbreviated
    DDDD: day name - written out in full
    MM: month (two digits)
    MMM: month name - abbreviated
    MMMM: month name - written out in full
    YY: year (two digits)
    YYYY: year (four digits)
    LD: day (formatted as for the L option)
    LM: month (formatted as for the L option)
    LY: year (formatted as for the L option)
    All other characters found in a date mask are interpreted as simple text and are copied straight into the output.
    Assuming the current system date is March 1st, 1997.
    /: SET DATE MASK = 'Foster City, MM/DD/YY'
    &DATE& -> Foster City, 03/01/97
    /: SET DATE MASK = 'MMMM DD, YYYY'
    &DATE& -> March 01, 1997
    The date mask may be reset to the default setting by using an empty string:
    /: SET DATE MASK = ' '
    The abbreviated and full forms of the names of the days and months are stored in the language dependent TTDTG table under the following keys:
    %%SAPSCRIPT_DDD_dd: abbreviated day name
    %%SAPSCRIPT_DDDD_dd: full form of day name
    %%SAPSCRIPT_MMM_mm: abbreviated month name
    %%SAPSCRIPT_MMMM_mm: full form of month name
    dd: day number 01 = Monday,..., 07 = Sunday
    mm: month number 01 = January,..., 12 = December
    Regards.
    Eshwar.

  • Re: Error when configuring Data Masking with workload masking in 12c

    Hello,
    Even I am facing a similar issue - error message displayed when trying for data-masking along with R.A.T. capabilities
    Can anybody help resolve this.
    Objective - Use Real Application Testing in combination with Test Data Masking Pack
    Current Setup
    I have a VM Box with Windows 2008 R2 Server OS Image
    Enterprise Manager 12c and Oracle 11g Database Instance Installed and configured on the same host.
    Have added one more Oracle Database Instance 11g Database instance into the Target Databases.
    while doing data masking, when i select the checkbox Ensure Workload Masking Compatibility i always get the error:
    "Workload masking is not supported by the target database chosen. You may need to apply a patch or move to a newer version of the database for workload masking."
    Can you please guide as to which patches / configurations need to added. I believe the Patches and Provisioning Wizard within EM will help on installing the requiredd patches.
    But I am not aware of which patch it is referring to.
    highly appreciate your help n guidance in this regards.
    Regards,
    Nayan Tejani
    +91 98333 02666

    Gosh! at last i found the solution!!
    I appreciate those who tried to help and i''m sharing the solution as i believe this is the purpose of SDN Forum and help others Netweaver Chap who facing the same problem:
    Problem faced:
    Extractor failed intermittently for WORKLOAD ANALYSIS (Introscope Data) due to error message "Error when opening an RFC connection"
    Due to the above error, performance data is not available in RCA workload analysis for J2EE engine.
    Possible Solution:
    1) Ensure both webadmin & SOLMANDIAG RFC working fine -> SM59 -> TCP/IP
    2) go to SE16 -> E2E_RESOURCES and change the resourcecap to 10 for SOLMANDIAG
    3) go to /smd/services -> Diagnostic System -> Advanced Setup -> Abap connectivity -> Connection Configuration and change server count to 10
    4) Restart webadmin (step 3 & 4 can perform in VA too)
    5) set gw/keepalive &  gw/reg_keepalive to value 0 in RZ11 (without reboot of instance)
    5) again go to SM59 -> TCP/IP -> SOLMANDIAG and put in the gateway host and gateway service correctly, don't leave this empty!!!! -
    > This is the main solution to solve intermittent failed RFC for extractor.
    Now, go back and monitor the extractor log and you should see no RFC error anymore and wait for 1 hour for the data to populate.
    Thanks!
    Nicholas Chang,

  • Is oracle data masking compatible with DB version 10.2.04?

    Hi,
    We are interested to find out if Oracle OEM data masking pack is compatible with DB version *10.2.04*? We are using OEM version *10.2.05*.
    Regards
    Imran Shafqat
    Sr. Practice Consultant
    EMC Consulting (UK)
    Edited by: 849880 on Apr 5, 2011 11:44 AM
    Edited by: 849880 on Apr 5, 2011 12:09 PM

    Yes it is.
    Checkout *How To Use Data masking Feature In Grid Control [ID 736833.1]* on MOS
    Regards
    Rob
    http://oemgc.wordpress.com

  • EM12C | Data Masking | How to make my column sensitive

    Hello All,
    EM : 12c
    DB: 11.2.0.3
    I have a table with column "Salary" and after doing the 'Data Discovery and Modelling' on my schema i do not see Oracle has identified by column as "Sensitive".
    How do i make it sensitive so that i can "mask" it ?
    TIA,
    JJ

    Steps for data masking feature in 12c Cloud Control(12.1.0.1):
    Creating only a masking definition does not protect data. You need to first create the definition, which defines the columns to be masked, then proceed with the actual masking to ensure data safety.
    Each masking definition requires one or more formats, which define the format used to mask the selected data. You can create the formats before or after creating the masking definition.
    Note: Before creating or editing a masking definition, be aware of the following advisory information:
        - Make sure the format you select does not violate check constraints and does not break any applications that use the data.
        - For triggers, PL/SQL, and so forth, Data Masking recompiles the object.
        - Exercise caution when masking partitioned tables, especially if you are masking the partition key. In this circumstance, the row may move to another partition.
        - Data Masking does not support clustered tables, masking information in object tables, XML tables, virtual columns, and so forth. However, relational tables are supported for the masking.
        - If objects are layered on top of a table such as views, materialized views, PL/SQL, and so forth, they are recompiled to be valid.
    a. To create data masking format:
    1. Login to 12c Cloud Control
    2. Expand the Enterprise drop down menu
    3. select Quality Management, then Data Masking Formats
    4. Click on "Create" to go to the Create Format" Page
    5. In the page displayed, enter the necessary details to create Format:
       a. General Information:
             Name: Name of the Format
             Sensitive Column Type: Select a column type the list
             Description: Description of Format
       b. Format Entries: Select a format from the drop down list, then click Go.
                                    In the page displayed, select the list of values and click OK
                                   Optionally specify the name of a post-processing function
       c. Click OK to create the Data Masking Format
    b. To create data masking definition:
    1. Login to 12c Cloud Control
    2. Expand the Enterprise drop down menu
    3. select Quality Management, then Data Masking Definitions
    4. Click on "Create" to go to the Create Masking Definition page
    5. In the page displayed, enter the necessary details to create masking definition :
        a. General Information:
             Name: Name of the Masking definition
             Application Data Model: Provide required Application Data Model(ADM) name from the list
             Reference Database: Provide required database name
             Description: Description of data masking definition
        b. Workloads: Check Ensure Workload Masking Compatibility if you want to mask Capture files and SQL Tuning Sets. This is optional
        c. Columns: Click Add to go to the Add Columns page, where you can choose which sensitive columns in the ADM you want to mask.
        d. Data Masking Options: Expand Show Advanced Options and decide whether the selected default data masking options are satisfactory (Optional)
        e. Click OK to create Data Masking Definition
    c. Performing the Masking Operation
        1. From the Data Masking Definitions page, click Generate Script. The Script Generation Results page appears, which shows the list of database commands to be used to mask the selected columns
        2. Either click Clone and Mask or Schedule Job
    For more details, refer the following document:
    http://docs.oracle.com/cd/E11882_01/server.112/e16540/tdm_data_masking.htm#CEGBFFDJ
    Oracle® Database Real Application Testing User's Guide
    Chapter 15: Masking Sensitive Data
    HTH
    Mani

  • Data Masking Pack

    I have installed the Oracle Enterprise Manger Control Grid 11g R1 with Oracle Database 10g R2 (10.2.0.4). Now I am asked to install the data masking pack. How can i install the data masking pack?
    Thank you,

    Data Masking Pack functionality is shipped with the Enterprise Manager Grid Control product starting with EM GridControl 10.2.0.4. Click on the Database tab; the links Masking Definitions and Mask Formats are related to Data Masking.

  • Default Date Mask

    Hi All,
    We have about 15 business areas with 100+ folders each. Does anyone know how we can change the default date mask without going into every single folder and changing it for every date item?
    Thank you,
    MIS

    Hi,
    I think the only way to do this is to hack the EUL table using SQL*Plus. Fine if you backup and know what you are doing, but otherwise a recipe for disaster.
    The table you want to change is EUL5_EXPRESSIONS, so for example, to change the default date mask for all audit date columns (item name begining with Audit) from DD-MON-RRRR to DD-Month-YYYY you can use this SQL:
    update eul5_expressions
    set it_format_mask = 'fmDD-Month-YYYY'
    where exp_type = 'CO'
    and exp_data_type = 4
    and exp_name like 'Audit%'
    and it_format_mask = 'DD-MON-RRRR'Rod West

  • Date printing using date mask

    Hi,
    Iam using Date mask to print the date in 96/01/10 (year/month/Date),(CHINA)  but iam getting 0.
    This is the code i have written.
    SET DATE MASK = 'YY/MM/DD'
    ,, ,,&REGUD-SWABZ(16)&  ( i have to get the date from this field ).
    Any one help.
    Thanks,
    Donald

    Hi,
    you can take the help from this code :
    <b>data : day(2), month(2), year(2).
    data : date1(10).
    data : date type sy-datum.
    date = sy-datum.
    day = date+6(2).
    month = date+4(2).
    year = date+2(2).
    write: date.
    concatenate year '/' month '/' day into date1.
    write : date1.</b>
    If it is helpful, please donot forget to reward the points.
    Sandeep

  • Time and Date mask

    Hi
    I need to display time in SAP Script according to following format:
    8:00 AM - 5:00 PM
    Right now its showing 8:00 to 17:00
    Moreover I need to display the date as February 26, 2007. I have checked Set Date and Time masks but it didnt work.
    Your guidance will be appreciated.
    Regards
    waseem imran

    Hi,
    Pl.refer following material.
    Formatting Date Fields: SET DATE MASK Edit section
    To define the formatting of date fields, use the SET DATE MASK control command. Executing this command causes all subsequent date fields to be printed using the specified format.
    Syntax:
    /: SET DATE MASK = 'date_mask'
    In the date mask, you can use the following codes:
    DD: day (two digits)
    DDD: day name - abbreviated
    DDDD: day name - written out in full
    MM: month (two digits)
    MMM: month name - abbreviated
    MMMM: month name - written out in full
    YY: year (two digits)
    YYYY: year (four digits)
    LD: day (formatted as for the L option)
    LM: month (formatted as for the L option)
    LY: year (formatted as for the L option)
    All other characters found in a date mask are interpreted as simple text and are copied straight into the output.
    Assuming the current system date is March 1st, 1997.
    /: SET DATE MASK = 'Foster City, MM/DD/YY'
    &DATE& -> Foster City, 03/01/97
    /: SET DATE MASK = 'MMMM DD, YYYY'
    &DATE& -> March 01, 1997 The date mask may be reset to the default setting by using an empty string:
    /: SET DATE MASK = ' '
    The abbreviated and full forms of the names of the days and months are stored in the language dependent TTDTG table under the following keys:
    %%SAPSCRIPT_DDD_dd: abbreviated day name
    %%SAPSCRIPT_DDDD_dd: full form of day name
    %%SAPSCRIPT_MMM_mm: abbreviated month name
    %%SAPSCRIPT_MMMM_mm: full form of month name
    dd: day number 01 = Monday,..., 07 = Sunday
    mm: month number 01 = January,..., 12 = December
    Formatting Time Fields: SET TIME MASK Edit section
    To format time fields to your needs, use the SET TIME MASK control command. Executing this command causes all subsequent time fields to be printed using the specified format.
    Syntax:
    /: SET TIME MASK = 'time_mask'
    In the time mask, you can use the following codes:
    HH hours (two digits)
    MM minutes (two digits)
    SS seconds (two digits)
    All other characters found in a time mask are interpreted as simple text and are copied straight into the output.
    Assuming the current time is 10:08:12,
    /: SET TIME MASK = 'HH:MM'
    &TIME& -> 10:08
    /: SET TIME MASK = 'HH hours MM minutes'
    &TIME& -> 10 hours 08 minutes
    The time mask may be reset to the default setting by using an empty string:
    /: SET TIME MASK = ' '
    Reward, if useful.
    Thanks,
    USR

Maybe you are looking for

  • Can't Enable XMP after BIOS flash to V1.4 on P55-GD85

    I didn't put this in the BIOS section because while the BIOS is involved,  I don't think it's necessarily a BIOS issue.  However, if it should go there please move it. While not new to computers by any stretch I committed the cardinal sin of updating

  • How can i see my device on pc without cable ?

    Hello All, I do not want to connect with continuous cable and I do not want to open the side micro usb cover at all times... i want to share files, can i use my device on my pc witout cable, bluethoot or wi-fi..

  • C7 General : System Error while deleting the photo...

    It show me system error when i attempted to delete the photos. Even i had my photos deleted on mass storage mode and ovi suite, it's seem that the deleted photos is still in the memory when i open the photo app. Some one please help me on that i'm ru

  • IPad syncing issues getting on my nerves... suggestions?

    When I first got my iPad 3G 64GB, I decided to sync as a new device and auto sync apps. Okay, but that put 22 pages of apps on my device and I was forced to spend at least a couple hours culling them down to just to fit the ones I want on the iPad...

  • How to center a button in a sidebar region

    Unfortunately, position options for buttons only include left and right. If I want to center buttons in a sidebar region, how might that be done? It's easy in firebug to modify <td align="left"> to <td align="center"> which fixes everything, but I'm