Date format in query results

HI, newbie to sql and Oracle. Quick question, my associate and I view date and timestamps in the same column in our db tables. We can run a query requesting date and time returned in sqlplus and it displays the date then the time. However, running the same query in sql developer worksheet window the results return only the date. We believe this is a formatting issue in sql developer. We check Tools > Prefs > Database > NLS Parameters under Timestamp format and it shows "DD-MON-RR HH.MI.SSXFF AM". We are not sure this is right but we are not sure we are looking in the right area as well. Any assistance with this is greatly appreciated.
thx
tc

Never mind. Found it. Had to copy from that field in to the one above it to get the view needed.

Similar Messages

  • Date format in Query Result Window

    In recent versions on OSD (trying with V3.2.20.09 Build MAIN-09.87) I've been unable to change the date format for results shown in the query results window via the NLS settings in Preferences, it's the same for other users on v3 in my area. Can anyone advice on whether anything can be done to resolve this issue or is there a bug in recent additions of OSD
    Frustrating having a result show as 01-DEC-12 and I don't know whether it's 01-DEC-2012 or our default date of 01-DEC-4712 without having to hard code a to_char in my sql which I don't want to be doing all the time to analyse my results
    I have an old version 1.5.4 Build MAIN-5940 and changing the NLS settings in preferences refrects correctly in the query results window
    Any advice appreciated, Thanks

    Thanks, looks like it's permission, tried on a different database supposed to be the same and it works when I update the preferences or run the alter session statement. Call to my admins to get on the case
    Ta
    for anyone else having simular issues, help are the statements I've tried to confirm it's permissions
    alter session set NLS_DATE_FORMAT = 'DD-MON-RR HH24:MI:SS'; -- Original
    alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR HH24:MI:SS';
    commit;
    SELECT *
    FROM nls_session_parameters
    Edited by: lakeuk on 14-Nov-2012 06:37

  • How to view complete date stamp in query result view in sql developer?

    Hi,
    In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
    How to view complete date stamp in query result view in sql developer?
    Thanks in advance,
    Vineet

    864793 wrote:
    Hi,
    In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
    How to view complete date stamp in query result view in sql developer?
    Thanks in advance,
    VineetAlternatively you can execute below
    set nls_date_format='DD-MM-YYYY HH24:MI:SS';Regards,
    Achyut K

  • Date format in the Results

    Hi,
    Dates in the Query are retrieved in DD-MON-YYYY format. Is there any option to set for retrieving all dates in the desired format?

    There is currently no preference for formatting dates returned by queries. However, the dates that are returned are formatted according to the NLS_DATE_FORMAT session variable, which can be changed with the following as an example:
    alter session set nls_date_format = 'DD-Mon-YYYY HH24:MI:SS';
    If you are selecting timestamps, then you need to alter the NLS_TIMESTAMP_FORMAT, etc - see the NLS_SESSION_PARAMETERS view for the different NLS settings.

  • EA1 - Cannot Change Date Format in SQL Results

    In version 1.2, I used to go to Tools > Preferences > Database > NLS Paramters and change the date format there. The change would then be reflected in the SQL results for date columns.
    When I try to do the same thing in 1.5 EA1, the date format is always the same, DD-MON-RR, no matter what I put in the date format setting under NLS Paramters.
    Am I missing something?
    Thanks.

    Just a quick post to make sure that the bug you logged takes into account all NLS parameters :), as this does not concern only dates but also timestamp formats, decimal and group separators as well, and probably all of the NLS parameters I assume.

  • How to change date format in query

    Hi all!
    there is Date field in query (ref to 0Date) and it is in "01.2010" format. Anybody knows how to switch to "Jan 2010" format?

    HI,
    You can dispay using the excel properties. Once after the workbook run, select the column you want to change the format and cange to the format required. Save the workbook.
    From next run the date field will be displayed as the format set in workbook.
    Hope this helps,
    regards,
    anil

  • Change date format in query

    Hi gurus
    I need to execute a query with date in International format (AAAAMMDD). In SU01 this format doesn't exist. The solution of change PC parameters before execution is not simple because queries are executed in background and broadcasted.
    Is there a way to change the format of the date in workbook?
    Thanks

    Hi,
    The Screen display for the Bex Analyzer is closely linked to the default date settings on the PC. These settings can be changed by the user to match the settings you desire. In Windows XP this setting can be changed by selecting:Start ->Settings -> Control Panel ->Regional & Language Options In this window select the customize button which will open a new window In the new window select the date tab, Go to the short date format field There will not be a standard with the option you desire you will need to enter the format manually. Select the apply button and then the Okay button. This will change your default date format in Bex and in excel spreadsheets.
    Regards
    CSM Reddy

  • Changing Date Format in query panel default calender

    Hi All,
    when I drag the date into the Query Filter Panel in Webi and use the between operator (or any operator) the format of the date shows up as DD/MM/YYYY as default . But we want the format should show up as DD/MM/YYYY HH24:MM:SS
    As far as we know, there is no preference setting available in WebI. Could you please guide us how can we change the format?
    thx

    Hi,
    Are you using a date object or a string object for date.
    If you are using a date object then you would have the option of calendar selection when using between where you would be able to see your desired format.
    I think if this does not resolve ur issue then either by changing regional settings or by changing the User setting (i.e. if you are using a single signon for ur Database (maybe SAP system) and ur BO WebI reports then the user id settings would directly apply here and you should be able to acheive mm/dd/yyyy hh:mm:ss format.)
    I hope this helps.
    Regards,
    Kartik

  • Date Formatting in a Result Field: Crystal Reports 2008

    I'm modifying a report at runtime in c# .Net using Crystal Reports 2008.
    I'm having trouble modifying a date fields format. I have accessed the DateFieldFormat object, and modified the properties, but only the SystemDefaultType property seems to have any affect.
    If the Date format is set in the Visual Report Designer I can see the details of the format in DateFieldObject, but editing these values doesn't have any affect on the report once displayed.
    Here is a sample of the code i'm using:
    public Form1()
         InitializeComponent();
         CrystalDecisions.CrystalReports.Engine.ReportDocument reportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
         ISCDReportClientDocument reportClientDocument;
         // Load Report
         reportDocument.Load(@"C:\myReport.rpt");
         reportClientDocument = reportDocument.ReportClientDocument;
         // Access Field
         FieldObject fieldObject = (FieldObject)reportClientDocument.ReportDefinition.DetailArea.Sections[0].ReportObjects["DateField1"];
         // These work, if I want to use one of the default formats
         // fieldObject.FieldFormat.DateFormat.SystemDefaultType = CrDateSystemDefaultTypeEnum.crDateSystemDefaultTypeUseLongDate;
         // fieldObject.FieldFormat.DateFormat.SystemDefaultType = CrDateSystemDefaultTypeEnum.crDateSystemDefaultTypeUseShortDate;
         // I don't want to use one of the defaults.
         fieldObject.FieldFormat.DateFormat.SystemDefaultType = CrDateSystemDefaultTypeEnum.crDateSystemDefaultTypeNotUsingDefaults;
         // I want to change the order of the values
         fieldObject.FieldFormat.DateFormat.DateOrder = CrDateOrderEnum.crDateOrderDayMonthYear;
         // Display the report in the viewer
         crystalViewer.ReportSource = rpt.rcd.ReportSource;
    I'm assuming I'm missing something about the object model here, but I can't find any good reference to it. Can someone help me out?
    Thanks!

    Hello,
    I find using the Object Browser in .NET IDE is very useful. Or look for the Developers help file
    The API you are using is not the one to use. Try this one:
    public virtual CrystalDecisions.Shared.DayFormat DayFormat { set; get; }
        Member of CrystalDecisions.CrystalReports.Engine.DateFieldFormat
    Thank you
    Don

  • Date format in Query

    I checked in SQL to see that the createdate and getdate were the same format, and they are -- but obviously SAP B1 presents it in a regular format.  How do I write the query so that the two formats are the same?
    SELECT T0.[callID], T0.[subject], T0.[customer], T0.[custmrName] FROM OSCL T0 WHERE T0.[createDate] = getdate()

    Hi Carrie,
    Try this, you will be get the exact result.
    SELECT T0.callID, T0.subject, T0.customer, T0.custmrName
    FROM OSCL T0
    WHERE
    (SELECT CONVERT(VARCHAR(8), T0.CreateDate, 3)) = (SELECT CONVERT(VARCHAR(8), GETDATE(), 3))
    OR
    Try to use parameter.
    SELECT T0.callID, T0.subject, T0.customer, T0.custmrName FROM OSCL T0 WHERE T0.createDate = '[%0]'
    Regards,
    Madhan.
    Edited by: Madhan Babu C on Jan 11, 2010 12:37 PM

  • Date format in Query Extract - Urgent

    Hi,
      I'm using Query-Extract (RSCRM_BAPI) to extract query data and store it in separate location.
    While extracting the data into .csv ot .txt file, date will be displayed as yyyymm (200807). As per the requirement we should display the date in the format mmm-yyyy (Jul-2008).
    Please help me. its very urgent.
    Thanks,
    Varun

    Hi ,
    This issue can be solved by writing a routine in update rules pls take the help of abap experts to solva this
    this is not a big issue for them
    Hope i have guided u properly
    Pls assign me points my boss ??
    Regards ,
    Subash Balakrishnan

  • Need to specify date range for query result.

    Below is my query. The query as is is working fine. The columns 'totalCalls' , 'totalOrders' and 'totalSCs' are all stored by date. I have created a form where the user can specify a start and end date. How would I change this query to report within those specified dates.
    <cfquery name="qZVPData_Western" datasource="xxxxxx">
    SELECT UserID,
           TMName,
        UserZone,
        AVG(WeekCallGoal) AS WCG,
        AVG(QTCallGoal) AS QTCG,
              (SELECT COUNT(*)
               FROM Sales_Calls
               WHERE Sales_Calls.UserID = u.UserID) as totalCalls,
        (SELECT COUNT(*)
         FROM Orders
         WHERE Orders.UserID = u.UserID) as totalOrders,
        (SELECT SUM(Quantity)
         FROM ProductOrders PO
         WHERE PO.UserID = u.UserID AND PO.NewExisting = 1) as newItems,
        (SELECT SUM(NewExisting)
         FROM  ProductOrders PO_
         WHERE PO_.UserID = u.UserID) as totalNew,
        (SELECT COUNT(ServiceCall_ID)
         FROM  ServiceCalls SC
         WHERE SC.UserID = u.UserID) as totalSCs,
        (SELECT COUNT(UserID)
         FROM  TMStatusLog TSL
         WHERE TSL.UserID = u.UserID AND TSL.Status = 'Vacation') as TSLdays1,
        (SELECT COUNT(UserID)
         FROM  TMStatusLog TSL
         WHERE TSL.UserID = u.UserID AND TSL.Status = 'TradeShow') as TSLdays2,
        (SELECT COUNT(UserID)
         FROM  TMStatusLog TSL
         WHERE TSL.UserID = u.UserID AND TSL.Status = 'Admin Day') as TSLdays3,  
        SUM(TSLdays1)+(TSLdays2)+(TSLdays3) AS TSLdays,   
        SUM(totalOrders)/(totalCalls) AS closePerc,
        SUM(totalOrders)/(totalCalls) - (.30) AS GRV,
        SUM(totalSCs)+(totalCalls)-(QTCG) AS PerVar,
       (SUM(totalSCs) + totalCalls + (TSLdays*WCG/5))/QTCG AS PerCalls
    FROM Users u
    WHERE UserZone = 'Western'
    GROUP BY UserZone, UserID, TMName
    </cfquery>
    I figured I could add this to the columns WHERE statements;
    'AND Column BETWEEN #FORM.Start# AND #FORM.End#' but this isn't working.
    Any ideas???

    What is the SQL being generated by your <cfquery> contents?  Is it valid SQL?  This is always the first thing to check when you get SQL errors back from the DB... check what you're sending to the DB.
    Second: don't hard-code dynamic values into your SQL string, pass them as parameters.
    Re all the subqueries: it runs fine in dev. Have you tried to load test it?  If poss move your subqueries to the FROM statement, as then they're only run once per recordset. As opposed to once per row of the result set, when the subqueries are in the SELECT or WHERE statement.
    Adam

  • Date format mask in Enter-Query mode

    Hi,
    I'm developing a Form which is able to query the masterblock from a detail-item.
    The queryable detail-item is a date field and has a datatype: DATETIME. When a new record is entered the values in the date field are stored in the database like "18-10-2002 15:04:02"
    When the form is in enter_query mode the user must be able to enter 18-10-2002 (DD-MM-YYYY format mask, so without time mask). When execute the query with this date format the query is not able to find data.
    I used a Key-Execute-Query on the detailblock like this:
    SELECT 1.COLUMN
    , 2.COLUMN
    INTO :1.COLUMN
    , :2.COLUMN
    FROM TABLE.1
    , TABLE.2
    WHERE 1.COLUMN = 2.COLUMN
    AND TO_CHAR(1.COLUMN,'dd-mm-yyyy') = to_date(:avg.datum,'dd-mm-yyyy');
    Can anyone please help me?
    Regards,
    Ronny.

    Hi Ronny,
    I'm not sure to have got exactly your issue (especially why you have to use that select in master-detail query), but I suggest you to substitute
    ...AND TO_CHAR(1.COLUMN,'dd-mm-yyyy') = to_date(:avg.datum,'dd-mm-yyyy');
    with
    ...TRUNC(1.COLUMN) = TO_DATE(:avg.datum,'dd-mm-yyyy');
    To be fair, I would use it in the where clause, even if you set it dinamically.
    Let us know,
    Marco

  • How to convert milliseconds to date format in sql query

    Hi All,
    The following code is in java.     
    String yourmilliseconds = "1316673707162";**
    Date resultdate = new Date(Long.parseLong(yourmilliseconds));
    could you plese tell me how to convert milliseconds into date format in query and comparing with another date like(sysdate-3)

    Hello,
    http://stackoverflow.com/questions/3820179/convert-epoch-to-date-in-sqlplus-oracle
    Regards

  • Date formats in BI Query designer

    Hi gurus
    We have enhanced our cube 0sd_co3 where we have taken a number of dates such as Railway Receipt date, Actual Goods Issue date, LFdat, thses are only few examples. Now our reporting scenerio demands reporting based on thses dates as given in our time dimensions such as
    YYYYMM        Qty
    but not based on the date mapped in the time dimension in the cube. but based on these dates
    in oracle we have the to_char function through which we change the format of date while writing sql query
    so if there is any option of changing date format in query without changing the modelling
    Pl suggest
    Thanks
    Shivani

    Hi,
    You can create new characteristic of char number 6 . Include it in the data target. Populate it via a update rule ( Routine).
    Use input as standard date (Railway Receipt date) and then pass the value to the new char in the required format (YYYYMM). Follow same thing for other dates also.
    Let me know if you have doubt.
    Regards,
    Viren

Maybe you are looking for

  • Pages not Syncing with iPhone 5

    Pages on my iPhone 5 running iOS 8 won't sync with iCloud Drive. In settings, I have "Sync with iCloud" and "iCloud Drive" turned on. When I open Pages and see no saved documents, I go back to settings and see that "Sync with iCloud" has automaticall

  • Is there a way of excluding Time Machine from drives list?

    Every time I save a file or an application scans the drives on my iMac, the Time Machine drive is included. But because the HDs in the external drive (Iomega) go to sleep between Time Machine back ups, they have to spin up (2 HDs in a RAID setup, so

  • Compatibility bug when securing PDFs?

    We have upgraded to Acrobat Pro 9 on a Windows XP SP3 platform. We need to make our PDFs compatible for opening with Acrobat 5, so have revised our default compatibility settings to 1.4 (Acrobat 5.x). But as soon as we put security on them (using the

  • Using standard datatypes in NIDAQmx functions

    I use NIDAQmx 8.6 with LabWindows 7.1. Can I use in NIDAQmx- functions the standard datatypes instead of the NIDAQmx datatypes? For example 'unsigned char' instead of 'uInt8', 'long' instead of 'TaskHandle'. I have seen in 'NIDAQmx.h' that NIDAQmx da

  • Connecting another monitor

    Hi Are there any instructions/ tutorials for connecting my 20" intel iMac to a Dell Monitor? cant seem to find any info. Also what cables would I need and is there anything to setup up in the OS to tell the mac I'm running 2 screen? Cheers Wayne