Date format on Axis

Hi,
I'd like to format an X axis for a chart. This axis contains dates. The default format is canonical, which is not very user-friendly.
I tried ViewFormat, but failed to achieve my goal with that one.
Here is my code :
chart:
<Graph graphType="LINE_VERT_ABS" seriesEffect="SE_AUTO_GRADIENT"><LegendArea visible="false"/>
<Title text="" visible="true" horizontalAlignment="CENTER"/>
<LocalGridData colCount="{count(xdoxslt:group(current-group(), 'COTATION_DATE'))}" rowCount="1">
<ColLabels>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="current-group()" group-by="COTATION_DATE">
<xsl:sort select="current-group()/COTATION_DATE"/>
<Label>
<xsl:value-of select="current-group()/COTATION_DATE" />
</Label>
</xsl:for-each-group>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="current-group()" group-by="COTATION_DATE">
<xsl:sort select="current-group()/COTATION_DATE"/>
<Cell>
<xsl:value-of select="sum(current-group()/INDEX_PRICE)"/>
</Cell>
</xsl:for-each-group>
</RowData>
</DataValues>
</LocalGridData>
</Graph>
Thanks for your help.

Well, I've sort of solved the problem. I modified my data query to include both standard date and formatted date
  select PRODUCT_NAME
            EXPIRY as EXPIRY,
            to_char(EXPIRY,'DD-MON-YYYY') as FORMATTED_EXPIRY
from    INVENTORYand generate my chart using EXPIRY, then modify the XML Label attibute of my chart
<ColLabels>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//G_MED" group-by="EXPIRY">
<xsl:sort select="current-group()/EXPIRY"/>
<Label>
<xsl:value-of select="current-group()/FORMATTED_EXPIRY"/>
</Label>
</xsl:for-each-group>
</ColLabels>
Still like to hear if it's possible to achieve without having to add an extra column into the query.
Cheers,
Brent

Similar Messages

  • Issue with Date Format in line Graph X-AXIS

    Hi all,
    I have a line graph, with data in x-axis and integer values in y-axis.
    I am fetching data in Mon-dd-yyyy format but in graph (x-axis) it showing in yyyy-mm-dd format.
    How to change this format.
    Regards,
    Krishna Prasad

    Hi,
    Basically you are trying to convert a date into date which is not advisable. Hence convert it to char and then equate it against a character value. Also do not use trunc as it will trim out the time part of the date.
    select * from test
               where to_char(dob,'RRRR/MM/DD HH24:MI:SS')=:p1Then pass the parameter
    cheers
    VT
    Edited by: VT on Oct 26, 2010 4:16 PM

  • How to set date format dd.MM.yy for chart time axis

    Is it possible to set default date format dd.MM.yy instead of MM/dd/yy in Flex charts without using label function ?
    In this case we do not know beforehand the length of the time span; it can be minutes, days or weeks.
    Setting locales in compiler options or locale settings for application seems not having any effect.

    For example
    - mx:Barchar
    - if time span is 4 minutes; time axis format is HH:mm and shows 10:00, 10:01, 10:02, 10:03 ; *this correct*
    - if time span is 5 days; time labels are automatically in MM/dd/yy format; question is how to change this automation
    to format dd.MM.yy
    - how to do this *without* dateformatter and *without* coding "if time span is is longer than day nyt less than week then use dd.MM.yy format" ?

  • DVT X Axis Date Formatting using tabular data

    Hi,
    I have a curious question about the <dvt:attributeFormat>.
    I wanted to format my bar graph x-axis with locale sensitive date formatting.
    I saw this attribute <dvt:attributeFormat> which I think is the best tool for the job.
    <dvt:barGraph id="wsssudg1" subType="BAR_VERT_CLUST" tabularData="#{myBean.tabularData}">
              <dvt:a t t r i b u t e F o r m a t  >
                   <af:convertDateTime locale="#{myBean.locale}"/>
              </dvt:a t t r i b u t e F o r m a t  >       
    </dvt:barGraph>
    My only concern is this.  I am not using page binding in building my graph data but using tabularData property instead.
    I am passing a java.util.Date object also from my getTabularData method
    public class MyBean{
        public List getTabularData(){
            /*More code her*/
            return list;
    According to the java docs here http://docs.oracle.com/cd/E24382_01/apirefs.1112/e17490/tagdoc/dvt_attributeFormat.html
    The name of the categorical attribute is the name of the attribute/layer that was added to the Graph DataModel. The Graph model can be set declaratively by updating the pagedef. Here is the associated view pagedef for the above graph:
    <graph IterBinding="EmpView1Iterator" id="EmpView1"
          xmlns="http://xmlns.oracle.com/adfm/dvt" type="BAR_VERT_CLUST">
        <graphDataMap leafOnly="true">
            <series>
              <data>
                <item value="Bonus"/>
              </data>
            </series>
            <groups>
              <item value="Hiredate"/>
            </groups>
        </graphDataMap>
    </graph
    >
    ..but since I am not using page binding then what name should I put there?
    Any DVT experts around?

    I tried different name but I cant find the correct attribute name.  Tried 'object', 'attribute 1' etc but it seems not correct.
    <dvt:barGraph id="wsssudg1" subType="BAR_VERT_CLUST" tabularData="#{myBean.tabularData}">
              <dvt:a t t r i b u t e F o r m a t  >
                   <af:convertDateTime locale="#{myBean.locale}"/>
              </dvt:a t t r i b u t e F o r m a t  >       
    </dvt:barGraph>
    Does this mean that this tag only works when you are using page binding?
    If you are using tabulardata in managing your data then does it mean that you cannot use this tag?
    Then how do you format DVT graph data that uses tabularData if you do not know the attribute name?
    The javadoc tag reference does not mention anything about this.
    Anyone has experience in dealing with this scenario?
    Use case:
    How do you format date attribute in a locale sensitive manner when your graph is using custom list in the tabulardata tag property of your graph component.
    Thanks

  • ADF DVT's time Axis Date Format

    Hi, I've been working with DVT line graph and bar graph.
    Was able to display details and apply time selector.
    The details that can be displayed in the graph is dynamic, meaning the number of bars or columns that will be displayed in the graph can be smaller or bigger.
    I just noticed that the Date Format that appears in the X-Axis is not consistent, sometimes is display the dates as day (01, 02, 03.. etc.) then month under it.
    but sometimes the format is "mm/dd/yy". Is there a way to make the date format consistent?
    Thanks.

    hi experts, any idea please...

  • Hw can I generate XY graphs directly in a vector data format for printing ie pdf

    A further question re. Printing of Graphs
    There are many similar questions but none where the answers are acceptably adiquite or two or three were the link was broken,
    "Developer exchange forums have been moved" and a pointer to the new
    site, unfort it was hard to find or guess the rest of the link.
    So here is my angle on this problem;
    So far I have tried;
    Using property node: "App.  Printing.Default Printer" to select the printer to use, then
    Using Report Functions to print controls;
    New Report, to generate a new report reference
    Set Report Orientation
    Set Report Margins
    Set Report Font
    Set Report Header Text
    Set Report Font
    Set Report Footer Text
    loop for each page
    Set Report Footer Text,     With page number
    Append Control Image to Report,      several times
    New Report Page
    Until the end of the last page
    Print Report
    Dispose Report
    Initially using existing XY-Graph controls from the front panel.  These
    are on a page of a Tab control to hide these controls while not in use
    and allow them to be hidden while generating the printout. 
    Unfortunately when this page is hidden any graph scales set to
    autoscale don't, (normally don't need to and would otherwise be a waste
    of processor time), resulting in graph plots going off scale or
    becoming a line along the axis.
    An issue is that what is printed appears to be read from the screen, so resolution is much
    lower than required for for printing, resulting in rather pixellated
    printed versions. These prints will usually be emailed, so tried the
    pdf995 "printer driver" but the resulting pdf file size is rather large.
     Currently trying Plot-XY on a much larger picture so as to get
    adequate resolution for printing, however suspect this will result in
    much larger pdf files and probably cause other problems. 
    The preferred solution in this case will probably be to generate print
    output, instead of based on raster images (ie jpg or png), but on a
    vector format, maybe via postscript or directly in pdf format.
    Similar graphs currently printed from Excel via pdf995
    (or OpenOffice) result in files around 20 kb per page. these can be printed at any size
    (at least upto 64 times) without becoming pixellated, so assume these
    are vector based.
    Currently a page with 4 XY Graph controls uses around 40 to 45 kb per
    page but resolution is poor and overcoming that may push file size up
    to 150 to 200 kb per page, and the whole job can be 50 to 100 pages.
    Are there any functions to generate XY graphs directly in a vector data format preferably in pdf or via PostScript format.
    Cheers
    Darryl

    Hi Darryl,
    I was able to reproduce the issue you were seeing, in which a report generation was taking up a large amount of space per page in a PDF utility. I found; however, using my attached VI (notice that it is set to *.png) and the CutePDF utility (free download at http://www.cutepdf.com/) I was able to get a per page size of about 10 KB. Also using the png I found that the image quality seemed to be quite high.
    Please try incorporating this solution into your application and see if it reduces your file sizes.
    Thanks and have a good evening!
    Cheers,
    Jonah
    Applications Engineer
    National Instruments
    Jonah Paul
    Marketing Manager, Embedded Software
    Evaluate the LabVIEW RIO Platform! - ni.com/rioeval
    Attachments:
    print_XY Graph.vi ‏23 KB

  • Date Format in SAP chart customizing - Gantt

    Hello Everybody,
    I have problems with date format in Gantt chart coding in
    ABAP using xml concatenate,
    when i am customizing the xml from chart designer.
    I want Time(X) axis  in Days but its showing in quarters or weeks.
    I also tried with LineFormat but i could not get control over it.
    can anybody please help me!!!
    here is my code:
    xml = '<?xml version="1.0" encoding="utf-8" ?><SAPChartCustomizing version="2.0">'.
      CONCATENATE xml '<GlobalSettings><Dimension>PseudoThree</Dimension>' INTO xml.
      CONCATENATE xml '  <TransparentColor>None</TransparentColor>' INTO xml.
      CONCATENATE xml '  <ColorPalette>Tradeshow</ColorPalette>' INTO xml.
      CONCATENATE xml '  <ColorOrder>Default</ColorOrder>' INTO xml.
      CONCATENATE xml '<Defaults><ChartType>Gantt</ChartType></Defaults></GlobalSettings>' INTO xml.
    CONCATENATE xml '<Values><Series><LineType>Direct</LineType><LineType1>Year</LineType1>
    <LineType2>Month</LineType2><LineType3>Day</LineType3><LineWidth>2</LineWidth>
    <MarkerShape>None</MarkerShape></Series></Values></SAPChartCustomizing>'
    INTO xml.
    *SEND CUSTOMIZING TO CHART ENGINE:
      lo_chart->set_customizing( data = xml ).
    Thanks in advance
    Bobby

    Hi Vijay,
    It's for ABAP only could you please post the solution.
    here i would like to share how i have given my series values:
    xml = '<?xml version="1.0"?>'.
      CONCATENATE xml '<ChartData>' INTO xml.
      CONCATENATE xml ' <Categories>' INTO xml.
      CONCATENATE xml '   <Category>Mat 1</Category>' INTO xml.
      CONCATENATE xml '   <Category>Mat 2</Category>' INTO xml.
      CONCATENATE xml '   <Category>Mat 3</Category>' INTO xml.
      CONCATENATE xml ' </Categories>' INTO xml.
      CONCATENATE xml ' <Series label="Op10" Customizing="Op10">' INTO xml.
      CONCATENATE xml '   <Point><Value type="time">20010101</Value>' INTO xml.
      CONCATENATE xml '   <Value type="time">20010115</Value>' INTO xml.
      CONCATENATE xml '   <Value type="time">20010120</Value>' INTO xml.
      CONCATENATE xml '   <Value type="time">20010130</Value></Point>' INTO xml.
      CONCATENATE xml '   <Point><Value type="time">20010101</Value>' INTO xml.
      CONCATENATE xml '   <Value type="time">20010125</Value></Point>' INTO xml.
      CONCATENATE xml ' </Series>' INTO xml.
    Thanks again.
    Bobby

  • Line Graph date format

    Hi,
    I Created line graph
    x axis date
    y axis amount
    The date format is not showing correctly
    For Ex : date range : 01-Jan-2011 to 10-jan-2011
    in graph x - axis firsi date is showing 01-Jan-2011 and remaining dtaes are showing only days like 02 03 04
    how i will get like these 01-Jan-2011 02-jan-2011 03-jan-2011 ......10-jan-2011
    Please help
    shk

    Hi,
    Replace the column formula of your date column as ,
    cast(MONTHNAME(YourDateColumn) as varchar(10))||' '||cast(YEAR(YourDateColumn) as varchar(10))
    Rgds,
    Dpka

  • Date Formatting in Charts and Dynamic column resizing in Cross tabs

    Hi All,
    I am new to Design Studio, so am in desperate need of your help on the following:
    Is there a way we can change the date format in x axis in charts?
    For ex: Am getting dates as mm/yyyyy from BW but requirement is to show in yy-Mon
    Requirement is to display data in cross tab just below the charts. How can I make the column widths in the cross tab the same as x-axis divisions in the chart? Also, this will be dynamic as depending on filter selection x axis scaling in charts will vary.
    In cross tab, can I hide the column header?
    Would really appreciate any kind of help from you.
    Thanks & Regards
    Swasti

    HI Swasti,
    To answer your first question, in Design Studio it's what you see is what you get! so it shows the Data Labels as it is in the BEx output, if you have to modify this you have to change it in the Background.
    There might be CSS workarounds, but I am not sure if that will satisfy your requirements.
    You can fix the Column width, but it would be constant, aligning that to your X-axis would require a lot of Effort.
    You cannot hide the Column header directly, but one workaround would be to use a white BG text component to overlay on the Crosstab.
    Regards,
    Fazith Ali Z

  • PowerView continuous dates on x axis

    HI, I am create a line report. I am not the DB owner. The x axis consist of the date range and the Y of the values. I don;t have data for every quarter.  When I do a bar chart, I see quarters as follow: 201401, 201402, 201403,201404,201501 I set the
    axis type as "automatic". Then I changed to a line format. The x -axis now has 201410,201420,201430....201490, 201500. If I choose categories as axis type, it looks correct but has gaps in the lines. Is there something in the report I can do or something
    in the DB DB that they can do so that I can get a continuous line ? Or is this a known limitation ?
    thanks
    Heather

    Hi foucault76,
    According to your description, you created a line chart, then added date to category group and value to data area, the report works fine. After you change bar chart to line chart, the date in x axis could not display correctly. When you change axis type
    to category, data of x axis displays correctly but there are gaps in the chart.
    I tried to reproduce the issue in my local machine, but it works fine for me. In order to improve the efficiency of troubleshooting, I need to ask several questions:
    Could you provide data type of date in database? What expression do you use to convert data to the format you provided?
    “I set the axis type as "automatic”, which axis type do you use?
    What’s the state of report now? Please provide some more detailed information of your requirements. I would be appreciated it if you could provide sample data and screenshots of the report in design mode.
    This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Another date formating issue

    I want the date to appear in Mmm-dd format - but I keep
    getting the full ODBC date format
    my query:
    <cfquery name="monthlyChart" datasource="2onboard">
    SELECT distance, time, walkDate
    FROM bockWalk
    WHERE month(walkDate)=#month(Now())# AND
    year(walkDate)=#year(Now())#
    </cfquery>
    my cfchart:
    <cfchart format="swf"
    style="/xml/dailyDistanceGraphs.xml"
    chartheight="175"
    chartwidth="575"
    showlegend="no"
    showborder="yes"
    show3d="no"
    foregroundcolor="000000"
    scalefrom="0"
    yaxistitle="Mileage">
    <cfchartseries type="bar"
    query="monthlyChart"
    valuecolumn="distance"
    itemcolumn="walkDate"
    seriescolor="ff0000">
    </cfchartseries>
    </cfchart>
    I've even tried formating it with an XML file
    Part of XML file
    <xAxis>
    <labelStyle isMultiline="false" orientation="vertical"
    />
    <labelFormat style="ShortDate" pattern="Mmm-dd" />
    </xAxis>

    quote:
    Originally posted by:
    jkgiven
    MikerRoo...
    Your solution stacks all my entries into one column instead
    of one for each date, why/how fix?
    Why didn't the <labelFormat style="ShortDate:
    pattern="MMM-dd" /> line in my xml work?
    Can you explain, or point me to a source, of how your lines
    work? - I really need to learn XML but it just doesn't seem to
    quite make sense to me.
    Your entries are all in one column because either:
    (1) You did not set the parseFormat pattern to match what was
    being returned by the database
    or
    (2) The chart granularity is set for monthly data and the
    data does not span enough time. Change the dateTimeStyle to:
    <dateTimeStyle majorUnit="Day" minorUnit="Day"/>
    <labelFormat style="ShortDate" pattern="Mmm-dd" /> did
    not work because (1) you needed to switch the axis mode to datetime
    and (2) the chart engine is very stupid and needs to be told
    exactly how to parse the values returned in the query. That is the
    purpose of the <parseFormat> tag.
    Finally, you do not need to learn XML per se.
    The XML styles are covered, a little, in the docs starting at
    <cfchart>
    There is a handy tool, webcharts designer, that you can use
    to generate xml styles at:
    c:\CFusionMX7\charting\webcharts.bat
    The Webcharts user guide covers the available styles in more
    detail. You can download that here:
    http://www.webcharts3d.com/website/WebCharts50/download/index.jsp

  • Data Format on charts

    Is possible to get Decimal Places UP to x on chart properties data format?
    I can change this property on criteria column, but If I want to change Vertical Axis Labels, Data Labels...only can change decimal places from 1 to 6...but I would like to select UP to 2.
    Changing xml advanced code with minDigits=2 to minDigits=0 and maxDigits=2...doesn't work.
    Add an image: http://imageshack.us/photo/my-images/840/dibujoins.jpg/
    Any solution??
    Thanks!

    In a pie chart, the whole 'pie' represents 'all of the data graphed'. 
    In percent, that's "one hundred per cent", or "one hundred per hundred"
    As a fraction, the whole circle represents 100/100, or 1/1 or 1.00 — all of which mean "one whole thing".
    Smaller portions are written as fractions of the whole, with the 'whole' fixed at 100 (percent) or 1.00.
    So a 20 pence piece represents 20/100 of a pound, which is 20 percent of a pound, or may be written as a decimal as 0.20 pound.
    One pound is 1.00 pound, or 100% of a pound.
    A 10 pound note is 10.00 pounds, or 1000% of a pound.
    And getting into the range of values on your Chart 16, 455 pounds is 455.00 pounds, or 45500% of one pound, which, as you can see, is correctly represented on the chart.
    Here's a pair of charts, and the table that feeds them. Same data as in your example, but with the Y axis scale showing the raw data numbers on Chart 1, and the fraction of the total (1146) that each amount represents on the chart 2.
    Formatting the Y axis labels to show percent doesnt change the values. The numbers are multiplied by 100, and the % sign is attached to show that these are the number per hundred. For chart 1, where the current scale takes no account of the total, converting to percent doesn't make sense.
    For Chart 2, with the current scale, the four bars show (approximately) 0.2, 0.3, 0,4 and 0.1. Altogether, that's 0.2+0.3+0.4+0.1 = 1.0
    Converting Chart 2's Y axis values to percents changes the labels on the four non-zero lines to 10, 20, 30 and 40%. The four bars now show 20, 30, 40 and 10 percent. Add those up and you get 100% (which is always the total percentage of 'the whole thing'.
    Regards,
    Barry

  • Problem with Date formatting

    Hi Tim,
    I am facing some issues with formatting the date using XMLP. The following is the sample XML data file i am using:
    <LIST_G_HEADER>
    <G_HEADER>
    <QUOTE_HEADER_ID>1455</QUOTE_HEADER_ID>
    <QUOTE_NUMBER>2027</QUOTE_NUMBER>
    <QUOTE_VERSION>1</QUOTE_VERSION>
    <QUOTE_NAME>Test GM Report - Rabindra</QUOTE_NAME>
    <SOURCE_NAME>Fletcher, MR. Paul</SOURCE_NAME>
    <QUOTE_DATE>27-OCT-2005</QUOTE_DATE>
    <CURRENCY_CODE>GBP</CURRENCY_CODE>
    </G_HEADER>
    </LIST_G_HEADER>
    The formatting i use for my date field i.e <QUOTE_DATE>, ends up either with NO formatting or giving me an error "[010906_114656657][][ERROR] Invalid XSD string: 27-OCT-2005 (XMLP Template Viewer)". The default formatting available with the form field dialog box (MS-Word) feature also doesn't work.
    I have the following formatting for this field in the form field:
    <?format-date:QUOTE_DATE; 'MEDIUM' ?>
    When i read the user guide, it reads that the date should be in the canonical format i.e: YYY-MM-DDThh:mm:ss+HH:MM
    However i am not getting the date from the base table's in this format. Is the error happening due to incorrect format or is there some other reason behind this? Please let me know, how can i overcome this issue.
    Thx,
    Nitin

    As i mentioned in another thread
    substring function and date format
    Please use this standards
    <?xdofx:expression?>
    for extended SQL functions or
    <?xdoxslt:expression?>
    for extended XSL functions.
    Use like
    <?xdofx:rpad(LAST_NAME),30, ’x’)?>
    <?xdofx:Instr(’abcabcabc’,’a’,2))?>
    <?xdofx:upper(char)?>
    <?xdofx:lower (char)?>
    <?xdofx:greatest ( expr [, expr]... )?>
    ETC.....

  • How can we give the Data Format (File Type ) in Runtime

    Hi all,
    How can we give the Data Format (File Type ) in Runtime for the following method,
    cl_gui_frontend_services=>gui_download.
    Thanks in advance
    Sri

    There is a filetype parameter which you can set
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
    *    BIN_FILESIZE              =
        filename                  =
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      changing
        data_tab                  =
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24

  • Need to convert into date format

    Hi all,
    I need to convert '2008-11-26T11:07:38-06:00' [YYYY]-[MM]-[DD]T[HH]:[MM]:[SS][TIMEZONE]
    in format 'YYYY-MM-DD HH:MM:SS'.
    Thanks in advance.

    >
    Thank you for your reply
    But it is giving me output as '26-NOV-08'
    And I want in format '2008-11-26 07:38' i.e 'YYYY-MM-DD HH:MM'.
    >
    Then you are not looking for a date, You are looking for a string.
    The date format that gets displayed is dependent on nls_date_format parameter.
    If you want a string in the format you asked, then,
    SELECT TO_CHAR ( TO_DATE ( '2008-11-26T11:07:38-06:00', 'YYYY-MM-DD"T"HH24:MI:SS"-06:00"'), 'YYYY-MM-DD HH24:MM:SS')
      FROM DUAL;Or if you just want the date to be displayed like that then
    Do,
    SQL> alter session set nls_date_Format="YYYY-MM-DD HH24:MI:SS";
    Session altered.
    SQL> SELECT TO_DATE ( '2008-11-26T11:07:38-06:00', 'YYYY-MM-DD"T"HH24:MI:SS"-06:00"') dt
      2    FROM DUAL;
    DT
    2008-11-26 11:07:38
    SQL> G.

Maybe you are looking for

  • Ipod mini won't write past certain limit

    I woke up this morning to the sad folder face on my iPod mini. After a reset, it was still a sad mini, so I did what I thought necessary: I restored it with updater software. Now, it connects ok, and what music I can put on it plays fine. The problem

  • Deadlocks in Azure SQL database

    Hi, We tried to increase the number of Worker Role instances to increase the processing capacity of the Worker Role and it improved considerably and only issue was deadlocks in the database. Any idea what needs to be done to resolve the deadlocks in

  • Help with URL.openStream

    Hi, This small Java program hangs if run on 1.3.1 but not 1.2.2 or some version of 1.4: import java.net.*; import java.io.*; import java.security.*; public class V {     public static void main(String args[]) throws MalformedURLException, IOExcep tio

  • Air Drop on iMac

    How do you turn on Air Drop on iMac?

  • SQL Command to select MAX(date) & Max(time)

    My am having a really hard time getting a sql command to return data with the max(date) & max(time) combination. I think I need a sub query but can not figure it out. I have looked all over the internet but still don't understand it. Below is my comm