A date column, with timestamp..how to remove timestamp

Hi,
I have a table name CATCH, with one of its fieldnamed DATE, using DATE datatype.
The date format incudes timestamp,can anyone help me how to remove the timestamp part.
I only want the date part only. I have tried this:
Update CATCH set DATE=to_char(date,'DD-MON-YYYY');
but the result of all the date inside the table still having timestamp.
then i use this:
Update CATCH set DATE=to_date(date,'DD-MON-YYYY');
and the result still the same.
Can anyone advice on this? pls.
Thanks

user9353110 wrote:
Thank you very much..if thats the case, can we remove the timestamp when creating view for this table?no, you can never remove the time component of a DATE.
If you don't want to show the time for a date (display purposes only!), use TO_CHAR to "transform" the DATE to a string with the appropriate format mask
SQL> alter session set nls_date_format = 'dd-mm-yyyy hh24:mi'
  2  /
Session altered.
SQL> select sysdate
  2    from dual
  3  /
SYSDATE
17-03-2010 09:28
SQL> select to_char (sysdate, 'dd-Mon-yyyy')
  2    from dual
  3  /
TO_CHAR(SYSDATE,'
17-Mar-2010
SQL> select to_char (sysdate, 'yyyy-MON-dd')
  2    from dual
  3  /
TO_CHAR(SYSDATE,'
2010-MAR-17
SQL> NOTE: the last two example are not DATEs! They are STRING

Similar Messages

  • Not able to save date column with custom date format. in OBIEE 11g

    Hi,
    I have migrated one report from OBIEE 10g to 11g. There is a date column with customized date format(i.e. Default format is 'dd-MMM-yyyy' and I have used 'MMM-yyyy').
    But when I use this custom format and try to save the report in 11g its giving this below error.
    ''Catalog object privilege validation failed for user to path /shared/ALM BI/Finacial Results/History Income Statement Detail.
    You do not currently have sufficient privileges to save a report or dashboard page that contains HTML markup.
    This HTML might be present in column headings, table headings, text views, narrative views, the print header,
    or the print footer and must be removed before saving.''
    Please let me know what changes I need to do for this.
    Regards,
    Ambika Nanda.

    Hi ,
    privilage issues...check the security settings once..
    Thanks,
    Ananth

  • Date column with format mask 'hh12:mi pm'

    let's say the user input record as shown below :
    trip At01 At02
    1 9:30 AM 12:30 PM
    At02 & At02 are date column with format mask 'hh12:mi pm'. When the user input 9:30 and tab to next item, the column will display as 09:30 AM. Then when user input 12:30 at AT02, it will display as 12:30 PM.
    Anyway, if I enter 1:00 at AT02, it will display as 01:00 AM. Actually I want to display as 01:00 PM. I still can go back to the field to edit it manually but is there a way that I can do as mentioned ?
    Please advise.
    Thanks,
    Shu Wen

    You are going to have to write your own validation logic to do this - You'll have to decide what point AM shoudl be defaulted and what point PM should be used. I don't think that there is a format mask that provides this functionality.

  • Query To update a date column with a date of my interest

    All,
    How to update a column in a table which is in date format with a date of my interest??
    Pls suggest.

    Please detail :
    1. what exactly you are trying to do
    2. what exactly you have done
    Nicolas.

  • Get the month from a date column with the calculated column

    I am trying to get the month from a date field with the help of calculated column. However I get this syntax error whenever I want to submit the formula:
    Error 
    The formula contains a syntax error or is not supported. 
    the default language of our site is German and [datum, von] is a date field.

    Hi,
    I have created two columns
    Current MM-YY
    Calculated (calculation based on other columns)
    Today
    Date and Time
    Current MM-YY is calculated value with formula as
    =TEXT(Today,"mmmm")
    But the output shows as December instead of May.
    I have tried =TEXT([Datum, von];"mmmm") but no help.
    I am trying to populated the column automatically with current month..ex: if its May the field should show May, next month it should show June an so on.
    Any kind help is grateful.
    Regards,
    Pradeep

  • Which type of index is useful for date columns with time stamp

    Hi all,
    I am using date column in the where clause of an SQL Query. The values stored in the date column are includes timestamp. The query is very slow and there is no index on the date column.
    Can any body suggest which index is better on date columns
    Thanks

    I am using date column in the where clause of an SQL Query.Dates a re hard queries to tune. This ...
    WHERE start_date BETWEEN to_date('01-SEP-05') AND to_date('02-SEP-05')...probably requires a very different execution plan to this...
    WHERE start_date BETWEEN to_date('01-JAN-01') AND to_date('02-SEP-05')Just bunging an index on the date column may speed up your specific query but break something else. So be careful.
    Cheers, APC

  • Achieving chronological sort on a date column with month function

    Hello all ,
    I have a a date column(start_date) on which I applied 'MONTHNAME' function to extract the month name
    out of the date . i.e. 4/24/2013 will return 'Apr' .
    While trying to achieve a sort on this , its returning alphabetical sorting , i.e.
    aug , apr , dec , jul ,jun etc .
    So achieving a chronological order , I created a logical column 'sort_month' . In the expression section,
    I wrote , month(start_date) . so this return numeric values of months , i.e . 1,2,3, 4 etc.
    Now , in 'start_date' column properties i have selected this 'sort_month' column ,
    sort on column . So , this should add a chronological sorting order to start_date column ?
    well its not working !
    Am I missing anything here ?

    Logical column general properties and set 'sort order column' to months
    Edited by: Srini VEERAVALLI on Apr 23, 2013 1:55 PM

  • How to remove timestamp,when i select calendar date(input Controls)

    Hi everyone
    I am using webi 4.0
    My problem is when i select calendar date(input Controls) i am able to display time stamp along with date in input Controls(MM/dd/yyyy 12:00:00 AM)
    i want to change (MM/dd/yyyy 12:00:00 AM) to (yyyy-MM-dd ), when i select calendar date(input Controls)
    where is the calendar date(input Controls)' format setting??
    i dont want to show the time stamp in calendar date(input Controls) as my users dislike to see that timestamp .
    Thanks & regards

    Hello,
    Can you show us the declaration of the internal table rec?
    Vikranth

  • Trying to compare date columns with differing formats...

    I have an app that created a series of tables via ODBC using ANSI standard datatypes. For most, this isn't a problem, but one in particular is driving me crazy: TIMESTAMP. In Oracle, it shows up as a TIMESTAMP(6). I don't want to mess with the app's tables, so every time there is an insert to their tables, I have a trigger which creates records in corresponding tables I build using standard Oracle datatypes (DATE).
    I have one function that gets called by several of the triggers that retrieves me a specific row to update, and it uses the value from this TIMESTAMP field in the WHERE clause like this (the value is passed into the function as a parmeter):
    SELECT TIMECARD_ID INTO tc_id FROM TS_TIMECARD_MAIN
    WHERE EMP_ID = e_id AND VEHICLE_ID = v_id
    AND IN_TIME <= logout AND OUT_TIME IS NULL; <----
    I seem to have a formatting issue, because unless the "logout" date is a full day later than IN_TIME, it doesn't pull the record (my code does a check to verify there is only one record matching the criteria but I haven't posted it all here for simplicity). I need it to be able to select the correct record with a one second difference.
    I have NLS_TIMESTAMP_FORMAT set to 'YYYY-MM-DD HH24.MI.SS.FF' and NLS_DATE_FORMAT set to 'YYYY-MM-DD HH24:MI:SS'. The relevant describes are included below. Can anyone suggest how to format my query (I expect to use the TO_DATE and TO_CHAR to compensate, but haven't found the right set) so that it resolves properly? Date math is a pain, but it is critical to my purposes.
    Vendor's table
    FIELD3_DATETIME TIMESTAMP(6)
    My table
    TIMECARD_ID NOT NULL NUMBER(10)
    EMP_ID NOT NULL NUMBER(10)
    IN_TIME DATE
    OUT_TIME DATE
    VEHICLE_ID NUMBER(10)
    Also, some sample default output from each table - not sure why formatting is wierd on my table.
    Vendor's table
    UNIQKEY STATUS FORM_ID VEHICLE_NUMBER CREATED_DATETIME
    11515780978071234994451 0 21423 24005 28-JUN-06 05.10.14.000000 PM
    CHECK_DVIR NEW_DVIR SERVICEABLE DETAILS
    1 1 1 everything ok
    INSPECTION_TIME ODOMETER LATITUDE LONGITUDE
    28-JUN-06 05.12.12.000000 PM 119885.1 44.7889490425587 -95.2167677879333
    My table
    TIMECARD_ID EMP_ID IN_TIME OUT_TIME VEHICLE_ID
    5 20044 28-JUN-06 24005

    That sounds a bit complicated. If you post your query I'm sure there will be a simpler approach, perhaps something like
    where  date_timestamp between cast(sysdate -30 as timestamp) and systimestampor if you prefer
    where  date_timestamp between systimestamp - interval '30' day and systimestampas discussed on Re: convert timestamp to date.

  • Sir i am buying an iphone 5 thel locked with icloud how to remove, Sir i am buying an iphone 5 thel locked with icloud how to remove

    Hi Sir/madam
    i have an iphone 5 imie matched boxx. i am buy from abroad now i am rcved i check my iphone thel lock with icloud id . wht i am doing tell me have any idea about how to solve.

    Hello, crazier apple. 
    Thank you for visiting Apple Support Communities. 
    I believe you are asking about the new Activation Lock feature and you are trying to disable this so you can activate your device.  The attached article will provide more information regarding this feature and the steps that need to be processed. 
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/TS4515
    Cheers,
    Jason H. 

  • To select table which has TAB as data column with in

    Hi All
    I have a table which has column type defined as TAB type. When I try selecting the table in PL/SQL developer, I got below error.
    What should I do? Even SQL* Plus shows the same error!
    SQL> select *
      2  from my_tab_cap
      3  /
    from my_tab_cap
    ERROR at line 2:
    ORA-00904: : invalid identifierThanks in advance.
    Message was edited by:
    guru paran
    Changed the table name.

    You probably want to help us out with all your ddl:
    create table tab2 (my_tab_col my_type ) nested table my_tab_col store as my_tab;
    create type my_type as table of varchar2(100);
    declare
    v_type my_type := my_type();
    begin
    v_type.extend(4);
    v_type(1) := 'I like table types1';
    v_type(2) := 'I like table types2';
    v_type(3) := 'I like table types3';
    v_type(4) := 'I like table types4';
    insert into tab2(my_tab_col) values (v_type);
    end;
    select * from tab2;
    MY_TAB_COL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
    VARCHAR(I like table types1,I like table types2,I like table types3,I like table types4)     

  • Data Merge with images - how to link/embed?

    My data merge is working beautifully but I cannot figure out how to properly include images in the data source so they appear in the target document. I'd love a tutorial on this. Anyone?

    You can get detailed info about data merge or any content on indesign help itself
    Add image fields in the data source file
    By adding image fields to the data source file, you can allow a different image to appear on each merged record. For example, when you merge documents that include information from various companies, you may want to include an image of each company’s logo as part of the merge.
    Open the data source file.
    At the beginning of the data field name, type an “at” symbol (@) to insert text or paths that refer to image files.
    The @ symbol is required only in the first line; subsequent lines should include the image paths. Paths, which are case-sensitive, must follow the naming conventions of the operating system in which they’re stored.
    (Windows) Example of image references in data source file
    Name                    Age                                       Photos
    Bill Tucker            36                                          C:\Photos\BillTucker.jpg
    Dat Nguyen         53                                          C:\MyDocuments\dat.gif

  • F-Secure coming with Belle -How to remove?

    Tried to uninstall F-Secure frm N8 (Belle) - seems it is impossible! Nokia please remove this restriction. It is "not nice" to promote any apps so forcibly to users..... Even MS does not do that at such extend...

    twozero3 wrote:
    Personally I always felt my E6 ran better once I had removed F-Secure.
    The first line of defence against malware is you. The biggest risk from malware comes from unsafe usage habits.
    Few people are ever totally passive victims of malware, especially on mobile devices, you have to allow it onto your device, then allow it to run.
    On Symbian devices malware typically arrives in bogus .SIS files which you obviously have to open and run before they can do anything. So think about the origin and credibility of the files you download and attempt to install on your device.
    whilst you are right about being passive victims, these days though things have changed. If you read the article from the link and from experience of i what see happen to customers in australia. The virus's are coming in through backdoors and sms. in the case of the zitmo (zues virus's variant), are arrive becuase of things they get on their PC's. The virus find the mobile number thru various means and send a virus to the phone in the form of an sms. The sms looks harmless however in the background it deleting messages, sending messages and making calls and other things. all with out the users knowledge. more importantly though the virus forwards messages from banks etc so that someones else can gain access to the infected parties internet banking, again all with out the users knowledge. This one virusis a multi-platform virus, that is it affects symbian, andriod, windows phone, and blackberry all in the one virus.
    Its simple we all need anti virus software no matter what brand the A/V software is, otherwise you will loose your identity at some stage in the future, these virus's are getting more and more smarter every day.

  • How to show timestamp along with date in LOV dropdown

    Hi,
    We have a requirement to show timestamp along with date as a display column in a LOV drop down. Type of the date column in VVO is set to timestamp. But still it is showing only date in the UI.
    But it is showing timestamp when we run it through AM. Is there any thing in to do in addition to display it in UI? Or it is not feasible? Please suggest me on this issue.
    Thanks in advance.
    Thanks,
    Santhosh

    The date format displayed in UI depends on applcore preference set for current user, try changing date format set for current user to include time along with date.

  • How show 0FISCPER3 and 0FISCYEAR description in title of BPS data columns?

    I have a layout with 24 months and each month have 3 columns (Volume, Price and Faturament). I'm using 0FISCYEAR and 0FISCPER3 in data columns with variables and off-set. In title of columns, just display the year. How to do to show the month and the year in the title of columns? (like 001/2006, 002/2006...)

    Hi,
    Edit the layout - under Data Column Tab, You can type in anything you want in the 'Heading' field after you have typed in the variable, so Variable (dynamic) and then you can type in any text after that, So if your variables (dynamic) is periods 001 to 012, you can then type in /2006.
    Rgds
    S
    Message was edited by: Shade Adekoya

Maybe you are looking for

  • Saving Data in SAP and DB2 database

    Hi All, I have an SAP application in which 10 fields are there for the user to enter. Out this 10 fields i need to save 5 fields in SAP database and another 5 in DB2 database.Please help me how to achieve this. Regards VEnk@

  • Data laods taking more time to complete

    Hi, we have some sale stats cubes which are laoding daily on avg Million records. We are creating indexes after that then creating aggregates. Both of these process are taking 2-3 hrs each.. even though we have 0 records in weekends its taking same t

  • Best quality exporting iMovie to DVD?

    Hallo! I have just finished a movie in iMovie HD 5, and now I am wondering how can I get the best possible quality when converting this project into a movie and then making a DVD? Specific questions: 1. Which way to export the movie? Export it direct

  • How do I upload 14,000+ photos saved on my iPod/ iPad to PC after the hard drive died

    How do I upload 14,000+ photos that I saved to my iPod and iPad. I have uploaded back on the computer my apps, music, iPad taken pics, but not sure how to get my original collection of photos back to the computer.

  • Microsoft Word is crashing when I try to print

    Hi, I'm having problems with printing in Microsoft Word for Mac. I have a new MacBook Air running on OS X 10.9.1. I've installed Microsoft Office 365 and my printer, HP Photosmart B110. I'm not having any problems printing from the internet. When I t