AnyGantt APEX chart wrong Time Format

I'm trying to create an anyGantt chart within APEX but the XML keeps misconverting the time section of date. Thus, where an activity should start on 05-11-2012 15:16:17 (DD-MM-YYYY HH24:MI:SS), it actually starts on 05-11-2012 12:11:00. It seems to take the Year as the Hour and the Month as Minutes, but assigns nothing to the minutes. The Year is also random, it's either 0, 1, 12, or 13.
So say I have this Record:
ID___________NAME______________DATE_START_____________________DATE_END_____________________________DRIVERID
2____________Driving_____________21-9-2012 12:04:40_______________22-9-2012 13:05:50______________________228And complete this statement:
SELECT null link,
t.driverid resource_id,
TRIM(r.lastname) || ', ' || r.firstname resource_name,
NULL parent_id,
t.date_start actual_start,
t.date_end actual_end
FROM "user"."gantt" t, "user"."drivers" r
WHERE r.driverid = t.driveridThe Gantt chart translates this activity to:
RESOURCE_NAME______RESOURCE_ID_______________ACTUAL_START______________ACTUAL_END
Sleeman,_Bob_________228________________________21-9-2012 *01:09:00*___________22-9-2012 *01:09:00*Thus giving me a wrong gantt chart, as these records would overlap, and start at the wrong time.
The XML settings are as following:
<settings>
________<title_enabled="False"_/>
<outer_margin_left="0"_top="0"_right="0"_bottom="0"_/>
____<background>
__________<fill_type="Solid"_color="0xFFFFFF"_/>
__________<border_enabled="false"/>
__________<corners_type="Square"/>
____</background>
____<navigation_enabled="true"_/>
____<locale>
_______<date_time_format_week_starts_from_monday="True">
_________<months>
___________<names>Januari,Februari,Maart,April,Mei,Juni,Juli,Augustus,September,Oktober,November,December</names>
___________<short_names>Jan,Feb,Mar,Apr,Mei,Jun,Jul,Aug,Sep,Okt,Nov,Dec</short_names>
_________</months>
_________<week_days>
___________<names>Zondag,Maandag,Dinsdag,Woensdag,Donderdag,Vrijdag,Zaterdag</names>
___________<short_names>Sun,Mon,Tue,Wed,Thu,Fri,Sat</short_names>
_________</week_days>_
_______<format>
__________<full><![CDATA[%yyyy.%MM.%dd.%HH.%mm.%ss]]></full>
__________<date><![CDATA[%yyyy.%MM.%dd]]></date>
__________<time><![CDATA[%HH.%mm.%ss]]></time>
________</format>
_____</date_time_format>
____</locale>
_</settings>I know the default format for the 24-hour notation in Oracle is "HH24" and the minute notation is "mi" and not "mm", but the notation in AnyGantt says minutes are %mm (lowercase) and months are %MM. The notation in anyGantt is different from the Oracle-notation. Who can explain this problem, and better, solve it?

Hi Rik,
Thanks for providing the login credentials to your example. I hope you don't mind but I've created a second Gantt chart on the page, to illustrate how to display the time component for the tasks on the chart.
In order to represent the time component on your charts, you need to use TIMESTAMP columns in your chart query. If you run your existing query from the chart in SQL Workshop, you'll see that the results only return the date component, and do not include the time. In order to retrieve the time component, you would need to use the TO_CHAR function on your DATE columns, which you have done for your report on the same page. Given that the chart query syntax must either reference DATE or TIMESTAMP columns, you therefore need to use the TO_TIMESTAMP function in this situation to ensure that you're capturing the date and time. I've got an example on my sample application, here: http://apex.oracle.com/pls/apex/f?p=36648:83.
So to get the chart displaying the correct information, I did the following:
1) Updated the chart series query to use TO_TIMESTAMP on your DATE columns
2) Updated the Application Timestamp Format via the Edit Application Properties page, changing it from DS to DD-MON-YYYY HH:MIPM, otherwise your timestamp values would still not display the time component.
Let me know if you've any further questions. I hope this helps.
Regards,
Hilary

Similar Messages

  • Quickview displays wrong "time" format of Excel document

    Here's an odd one. I have an excel document that has a row who's number format is time. Data entered and save the document. Look at the document in the finder under quickview and all the times are +3 hours. This happens in both Excel 2004 and 2008. It also happens on both my Powerbook and G5 tower. Both PPC. Both 10.5.1
    Can anyone re-create this, or is it just me?
    Stacy

    Hi,
    There is no error from the CRM functionality. If you SAVE the excel,instead of opening it directly and then " open with "
    word pad or notepad, you can see the phone no.s and fax no.s are properly transported to excel.There is a default format setting of
    excel from the Microsoft, so you are getting the default format after opening the excel.
    Steps:
    1.Export to excel.
    2.Choose the BP,PHONE and FAX columns holding the 'CTRL'key.
    3.Right click on the chosen columns and choose "format cells".
    4.Under the tab "number" choose 'number' and and reduce the decimal
    place to '0' and click "OK".
    5.Now you will be able to see the expected format.
    If you are using IE then the excel file that is being generated should be an XML file which would help with the formating issue. But when there is a problem in the generation of the XML file a CSV file is created instead.
    The kind of problems that can cause this could be :
    - Wrong version of Excel (professional needed)
    - Error in encoding (note 1560243 corrects this)
    - Active X Settings on browser are not properly setup or disabled
    - Other problems (some fixed in note 1457261)
    I hope this helps.
    Br,
    Lloyd

  • Wrong time format in "screen saver" mode

    The large "screen saver" clock (I wonder what the proper term is) always shows time in 12-hour format even when 24-hour clock is selected from settings. Instead, the clock display should conform to settings.

    Okaaaay.... Not sure what you need from your fellow users here on this forum, then. Perhaps you're trying to give feedback to Apple? If so, try this link.
    http://www.apple.com/feedback/ipodnano.html

  • Wrong DATE-TIME FORMAT among REPORTS NOTIFICATION EMAILs

    Dear all,
    I create a report request with url
    https://ocixxxx2.oci.xxcl.net/reports/rwservlet?>destype=printer&desformat=PDF&server=rep_xxxxx2_orahome&userid=ixxxxxx/xxxxxxx@saas&notifysuccess=IASL&notifyfailure=IASL&report=R1000R13.rdf&jobname=R1000R13&desname=HPLaserJet4150PCL6
    Email notification was generated with wrong date format .
    It's expected to be in UK English but it shows encoded text , may be random. I route it to another email servers such that find the date time is in chinese characters . That caused problem on original email server in which was not supported
    Could any expert please advice ?
    Warmly
    Edited by: MosielleKwan on 2010年2月26日 下午11:31

    It's indeed an expected behavior.
    When a Reports Server starts on a Windows machine, it likely detect the Windows Regional Settings in order to use it when needed later. This let the Reports Server communicate in the same format/way the Server machine uses. For example, if the System / Application Server administrator prefers to use the Windows (on which the Application Server is installed) with Chinese Regional Options, it is normal that the Reports Server send the Notification Email with a "Date/Time" Format matches the Windows.
    Thence, you like to get English/Western Date and Time format in the Reports Server Notification Email, it is required to change the Windows Regional Settings from Chinese to English and restart the Reports Server and restart the corresponding compoent. This will let the Reports Server detect the change and will send the Notification Email(s) then with English/Western Date and Time formats.
    If English/Western Date and Time format in the Reports Server Notification Email but still have the Windows Regional Settings set to Chinese, you can implement it
    that :-
    1. Change the Windows Regional Settings from Chinese to English.
    2. Restart the Reports Server and restart others.
    3. Change the Windows Regional Settings back from English to Chinese. .
    With these 3 steps, the Reports Server will keep sending the Notification Emails with English/Western Date and Time format, and maintain original settings.

  • How to use the d3.js library with Apex Charting

    Hello.
    I am using Apex 4.1.0 with Oracle 11gR2 and Oracle App Server (mod_plsql).
    I'm trying to incorporate the d3.js library (a visulaization framework) in my Apex charts but am not having much success.
    I found this article in which David Mann uses the library within an Apex 4.x application:
    http://ba6.us/d3js_application_express_basic_dynamic_action
    I replicated his exact steps in my own application but without success. I do not see how he was able to get his application to work. Indeed, the tutorial does not even use a dynamic action despite what the article title says.
    Has any one used the d3.js library with their Apex application. If so, would you be willing to share how you went about it?
    Thank you very much.
    Elie

    EEG wrote:
    Hello fac586.
    Thank you very much for responding/helping.
    In the article I referenced I did note David's statement about using a "modern" browser with d3.js (one that recognizes css3 syntax); otherwise, the framework will not respond. And so, I was careful to run my Apex application in IE9.x as well in Firefox 16.x. But all I see is an empty region with a title. No chart. Nothing.
    I suspect my one of my problems here is in getting the chart to refresh every "n" seconds. For this, I think the dynamic action would be used, though I'm not sure how to go about doing so.That's included in the sample code (line 99). Strangely Dynamic Actions don't seem to include a native timer event...however there is a plug-in.
    More problematic, though, is that I am not seeing any chart whatsoever in the region. I would have expected to see some chart data, even if it is not automagically refreshing.
    I've created my example in my EEG workspace on apex.oracle.com:
    Workspace: EEG
    Username: [email protected]
    Password: galaxy (note: all lowercase)
    Please see application 27083 called Elie_Goodies, page 25. This page has an associated tab called, appropriately enough, "d3.js Library". The Safari console showed a couple of JavaScript errors.
    1. The URL used to include the d3 code in the blog article:
    <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>is returning HTML, not JavaScript. Changing it to that given on the d3js.org site:
    <script src="http://d3js.org/d3.v2.js"></script>includes the correct script.
    2. There was a syntax error in a script in the Run Code region. I think there was some kind of issue arising from copying from the blog article: it looked like line endings hadn't been respected as the code wasn't formatted properly. Pasting it from the blog into Coda's editor and then into the APEX Region Source text area fixed the format, and it then ran first time.
    Thanks for the heads-up. I'll also be looking further into d3.

  • Apex Chart with multiple y-axis

    Hi,
    I am using the build-in flash Apex chart which I understand to be a subset of the Anychart.
    I have the following problem, I have two series, which I am displaying in a 3D Bar Chart on a horizontal view with two Y-Axis. This works well, the problem is that each Y -Axis has a different scale. I am not setting the min or max value range for either of the y-axis as I do not know what this value range may be at the time of rendering the chart to the application user.
    So as it turns out, the left y-axis has a value range from zero to 100 and the right y-axis has a value range from zero to 50 and the application users are finding this difficult and confusing as they are only looking at the bars represented in the chart and assuming that as the two bars, i.e. one form each series look similar in size, they have the same value and this can not be further from the true, as one y-axis is showing a value range twice as big as the other y-axis.
    So my question is how do you customise the chart so that the value range on both y-axis is the same. i.e., the largest of the two?
    Application Express 4.0.2.00.07
    Thank you

    You can't get axis scale variables to work in the APEX declaritive GUI because it's not designed for that. You will have to switch to custom XML.
    Set everything you want -- that you can set -- because once you switch to XML, if you switch back I think you lose all those custom settings. Then when you set Custom to "Yes", drag the window widget to enlarge the window so you can edit more easily.
    Find the y_xis section of the XML.
            <axes>
              <y_axis >
                <scale   mode="Normal"    />
                <title>
                  <text>Directory Size (Gigabytes)</text>
                  <font family="Tahoma" size="16" color="0x000000" />
                </title>
                <labels enabled="true" position="Outside">
                  <font family="Tahoma" size="10" color="0x000000" />
                  <format><![CDATA[{%Value}{numDecimals:1,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                </labels>
                <major_grid enabled="True" interlaced="false">
                    <line color="Black" />
                  </major_grid>
    <minor_grid enabled="True">
                  </minor_grid>
              </y_axis>You want to change the scale line between <y_axis>   </y_axis> to
    <scale mode="Normal"  maximum="100" minimum="0" />Or maybe it's just <scale maximum="100" minimum="0" />Except instead of constants, you want variables. I'm not sure you can use bind variable (:P7_YMAX, :P7_YMIN) you may have to use (#YMAX#, #YMIN#) variables.
    I would make a new page and experiment with some VERY simple data -- maybe constants in a SELECT -- SELECT ..., 1, 2, 3 from dual ...... until you get what works.
    And, again. This assumes you decide on some computation to compute the values of (:P7_YMAX, :P7_YMIN) or (#YMAX#, #YMIN#) you want it to use.
    Howard

  • How to change the bar chart rendering image format in SSRS

    Hello all,
    I am working with SQL Server 2008 R2 and I have a SSRS bar chart report, when the report got rendered over online or if the take Export (PDF and PPT), the image is in png format always, which is taking too much of time to execute the report in case of large
    data.
    Can, It be possible that the rendered image is in jpeg format instead of png.
    If Yes, please share the appropriate steps to follow:
    Thanks in advance
    Pankaj Kumar Yadav-

    Hi Pankaj067,
    According to your description, you want to change the bar chart rendering image format as JPEG format when previewing the report or exporting to a PDF file .
    In Reporting Services, the chart rendering image format is PNG by default. It’s a by-design behavior. And it doesn’t open any API for us to change the image type when exporting a chart to a format. So in your scenario, your requirement can’t be achieved
    in Reporting Services currently. I would recommend you submit a feature request to Microsoft at this site:
    https://connect.microsoft.com/SQLServer. So that we can try to modify and expand the product features based on your needs.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to limit data range in a Line chart with Time Refresh Control

    Hi All,
    I have a Line chart with Time Refresh Control and I would like to make some constraints to this navigation.
    For example, I would like to limit the user to navigate in a data range of 8 hours.
    Is this posible?
    Thanks in advance

    Hi Pedro,
    as far as I know, this is not possible using the time controls on an iChart. However, you may have some success by using your own time controls which call JavaScript methods exposed by the applet.
    For example, you could begin by hiding the time and calendar buttons on an iChart, and creating some buttons of your own. For instance, to set the start date of a query (and thus the start date of the iChart using the query), you can use the following:
    document.getElementById("appletID").getQueryObject().setStartDate(<date string>);
    Using code like the above (look into the xMII script assistant and documentation), you should be able to build time controls which satisfy your requirements. The exact format of <date string> in the sample above will depend on the date format defined in the query template this script calls.
    Hope this helps,
    Sascha

  • BO 3.1 WEBI Time format variable not showing correctly

    Hi,
    I apologise in advance. I know this topic has been covered many times in previous forums but I have been through each and I am still encountering an issue.
    My requirement is to convert x number of seconds into a HH:MM:SS time format for both positive and negative numbers in WEBI.
    I found a formula on a forum here that suggest using the following code:
    =FormatNumber(Floor([Column_Name]/3600) ;"0") + ":" + FormatNumber(Floor(Mod([Column_Name];3600)/60);"00") + ":" + FormatNumber(Mod(Mod([Column_Name] ;3600) ;60) ;"00")
    I have used this code and when I give the code an input of -720 seconds it outputs in the format -1:-12:00.
    It is quite frustrating I cannot get this to the correct format, can anyone suggest what is wrong with this formula?
    I am using WEBI for creating the formula on BO 3.1.
    Kind Regards,,
    John

    Hi,
    Let me try.
    This is your formula.
    =FormatNumber(Floor([Column_Name]/3600) ;"0") + ":" + FormatNumber(Floor(Mod([Column_Name];3600)/60);"00") + ":" + FormatNumber(Mod(Mod([Column_Name] ;3600) ;60) ;"00")
    Issue with this formula is only when you have used negative seconds.I have break the formula =FormatNumber(Floor([Column_Name]/3600) ;"0")  and found this is giving the wrong result.If you divide -720/3600 you will get 0.2 and nearest integer is 0 but in this case 1 is coming.
    Same time it is working properly with 720 and  the result  will be 0.
    In this case i have  created one variable  which  convert the negative values to positive.If you enter -720 then it will convert 720 and you will get the 0 from first part.
    =If([Column_Name]<0) Then ([Column_Name]*-1) Else [Column_Name]
    Second part is if you entered the negative values then output should be in the negative.but with above condition you will get the positive values.
    Again i have created the formula If([Column_Name]<>[Column]) Then "- which compare the object values and see if I have changed anything.
    Like i have entered -720 so first variable will convert to 720 then in next formula it will check -720 is not equal to 720 (Which is not) then add - (minus sign) and same calculation else part if is equal then use the same formula which you have put.
    Hope this is clear to you.
    Regards,
    Amit

  • Customize Apex charts

    Hello,
    I'm an Oracle DBA thats slowly learning Apex. our company wants to use Apex for forms and various reports. I have absolutely no XML, Java, HTML or any such knowledge that would be usefule for webdesigners. i rely mostly on the settings Apex provides, but i'm learning a few tricks here and there.
    my question is, how to customize/edit charts? here are open issues:
    - i have a 3D stacked bar chart (flash chart). i want to be able to
    - add a line to this chart for the same data. the line can be a "trendline" or some fixed value. i saw a website (AnyChart) that offers this soultion, but have no idea how to incorporate this. in any case, i did some tests, and it didn't work.
    - changing the Legend: we want to be able to change the order of the legend, so that it fits the chart! seems like a simple thing, but Apex does not offer this. it shows the legend in reverse order to the chart.
    Also, the Legend seems to fix a capital letter to the first character of a word, the rest is small.
    ex: we want a legend definition "AA KCOO" and we get "Aa Kcoo". we define this in the SQL Query, but it doesn't accept this.
    i suppose all this can be changed in XML coding, but how, and more important, why? shouldn't a tool like this have that option of changing these things? the GUI tool seems so limited here. its nice that you can customize in XML, but i think these are missing options..
    can anyone help, or guide me to the right documentation?
    thanks,
    mike

    Hi Dimitri,
    thanks for the tip.
    first of all, getting the item in like you mentioned did not work. i tried with and without the single quotes
    without quotes (<line value=&P8_LINIE etc) gives me an "XML Error was malformed" message, and with the quotes (<line value='&P8_LINIE' etc) gives me a completely differnt number! it draws a line at the very top of the scale, fixed at 160 in my case.
    i did another tes, redoing the flash chart in a different region. exact same error, only this time, since i set my y- axis max value at 180, then the line was drawn at the top again - so it seems like the line is automatically drawn at the place where the chart value was defined for maximum...
    oh well, no idea where this comes from...
    as far as Anychart goes - i took a look at the website - it costs a fair bit for this newer version! for one developer license 500 USD, for 4 developers 1000 USD!
    my question is: will a future Apex have the newer version? would it make sense to buy this or should we wait until Apex 4.0 comes out?
    i have since discovered another thorny issue with Apex charts, but i will open a new thread for that. see my "remove marker from 2D Line flash chart" thread
    so far, i'm quite frustrated at the lack of modification options available to this GUI tool. perhaps in future versions, Apex graphs will be better...
    mike

  • Validation on data and time format

    Hi
    In a flat file a date and time fill in but user.  And the data and time format should always be fill in with the format <DDMMYYYY> <HHMMSS>
    is there a FM which check whether user has put the wrong date format such as <YYYYMMDD> or <MMDDYYYY> instead for the the one mention above. 
    Please advise whether there is a FM which check on the format on the time stamp also.
    Note: the input of the data and time is done by the user.
    Thank

    Hi,
           use the new OOPs concept,
    PARAMETERS dateTYPE c LENGTH 10.
    DATA matcher TYPE REF TO cl_abap_matcher.
    * For date
    matcher = cl_abap_matcher=>create( pattern = `[0-9]{1,2}/[0-9]{1,2}/[0-9]{2,4}`
                                       ignore_case = 'X'
                                       text = date ).
    IF matcher->match( ) IS INITIAL.
      MESSAGE 'Wrong Format' TYPE 'I'.
    ELSE.
      MESSAGE 'Format OK' TYPE 'I'.
    ENDIF.
    like dis pattern for time : 
    [0-9]{1,2}:[0-9]{2}
    pattern for timestamp:
    [0-9]{1,2}/[0-9]{1,2}/[0-9]{2,4} [0-9]{1,2}:[0-9]{2}
    Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:35 PM

  • Chart run-time tools: focus

    Hello,
    I have a problem with the chart run-time tools. The Focus button doesnu2019t seem to work.
    Situation:
    My chart has values (y-axis) that vary mainly from 0 to 30, but sometimes there might be values over 100. I want the user to be able to see the trend clearly between values from 0 to 30. So I have set y-axis limit to follow the max value of the spread till it reaches 30. With higher values chart max limit stays in 30 (formula in cell).
    With Focus Button and Reset Scale Button I would allow user to format chart to show the overall trend with values over 30.
    Problem example:
    One of my y-values is 50. When I preview the chart the max limit is at 30 (as explained earlier). When I click Focus Chart Data-button the chart rescales to 35, but not to 50 (adds 5). Another example: my value is 80 and limit is at 60. With Focus chart data u2013button the chart rescales to 70 (adds 10) not 80
    What is the logic here? Why wonu2019t the chart rescale to my value?
    Br.
    Nicolas

    hi Nicolas,
    I tried to replicate your scenario using Line Chart.
    Sample Data
    x1,y1 - A, 1
    x2,y2 - B, 4
    x3,y3 - C,15
    x4,y4 - D,30
    Now i bind the data with Line Chart using 'By Series' and 'Category labels'.
    Go to Behavior -> scale
    set Manual Y-axis
    Min limit : 0
    Max limit : 30
    Go to 'Common' tab
    Enable Run-time Tools.
    Click Preview
    Grow - 35
    Off- 30
    Auto - 35
    Focus - 35
    Reset - 30
    Now i change my x3,y3 in excel to C, 50
    Now click Preview
    Properties are changed automatically as follows.
    Grow - 60
    Off- 50
    Auto - 60
    Focus - 60
    Reset - 30
    Here, i don't see any problem. As data changes, properties are automatically adjusted.
    Please try it out and let me know if  problem still exists.
    Regards,
    Vamsee

  • Smartform form {T_HEADER} has wrong page format

    I have a header window that contains a table for column headings just above my main window.  Somehow in the process of inserting a column and adjusting the size, I caused the following error to continue each time I attempt to print preview the form:
    Form T_HEADER has wrong page format.
    I have reviewed the details of the table to verify the width and the total of the line type column widths match.  The header window that contains the table also has the same width.  I am confused as to why I continue to get this error, but it is keeping me from testing any other changes to the form.  I am stuck here.
    P.S. I searched this forum for "form has wrong page format" and found one similar post that did not answer my issue.
    Thanks in advance.
    -PA

    hi Phillip,
    the easiest thing is that you download your form and upload it here, so I got a chance to import it and have a look at exact the same dataset as you do. OF course, delete all the stuff you don't want to share and is unnecessary to fix this issue.
    You can try one thing before, delete the table and create a new one with the same formats. Sometimes the compiler interpret it wrong because... I don't know why, but I realized that just delete helped
    ~Florian

  • JSP page display wrong time when compared to the server time

    Hi,
    This problem seems to weird but it is happening
    I have web application running where time is displayed in the page. In this application time is very critical. Currently, time is an hour behind the orginal time.
    I checked the server it is displaying proper time.
    As a matter of troubleshooting, I wrote a java program and run the program in the same server, where the application is running. The java program returns me proper time , but JSP is still displaying time an hour behind. To trouble shoot further, I created a test jsp page to just display the time and accessed the time and the jsp displayed wrong time as well, an hour behind.
    I am running[ tomcat 4.0.3 and j2sdk1.4.3 in suse linux enterprise server 9.0
    My Java program
    import java.util.*;
    import java.text.*;
    public class TestDate
    public static void main(String s[])
         try{
              DateFormat DF = new SimpleDateFormat( "dd/MM/yyyy");
    DateFormat DT = new SimpleDateFormat("hh:mm aa");
              SimpleDateFormat fmt=new SimpleDateFormat("HH.mm");
              Calendar cal= Calendar.getInstance();
              java.util.Date dt=cal.getTime();
              String curdt=DT.format(dt);
              System.out.println("Server Time" + curdt + "\n");
              int hh = cal.get(Calendar.HOUR);
              int mm = cal.get(Calendar.MINUTE);
              int aa = cal.get(Calendar.AM_PM);
              System.out.println("Time" + hh +":"+mm+":"+aa+"\n");
         }catch(Exception e) {
         e.printStackTrace();
    This display Time3:30:1
    My JSP Page
    <%@ page import="java.util.*,java.text.*"%>
    <%
    Calendar calen;
    calen = Calendar.getInstance();
    int hh=calen.get(Calendar.HOUR);
         int mm=calen.get(Calendar.MINUTE);
         int aa=calen.get(Calendar.AM_PM);
    %>
    <%=hh%> <%=mm%> <%=aa%>
    This display 2 30 1
    When I run Date in linux server it gives 3:30 PM EST 2004
    I am really confused, why this is happening, If you have any solutions or idea please post the solution.

    My guess is that the weirdness is caused by Daylight savings time.
    I will presume that you and the server are in the same timezone :-)
    Alternatively it could be caused by getting a different Locale.
    Try the following
    Print out "date.getTime()" value (ie long representing number of millis)
    They should be the same (or close) in both the app and in JSP
    Try simple date format in your JSP as well - what does that result in?
    Print the calendar object, and look for the difference.
    It might be in Locale, Timezone, or whether DST is set or not.
    Hope this helps,
    evnafets

  • Sql ---sum of Date-time formate ......

    id time
    1 1.20
    2 2.30
    3 4.20
    4 5.30
    5 1.00
    result expected = 14:40 or (if AM/PM so result is ???)
    how can i calculate the sum of time ???
    please give me some fast tricks of handling date/time formate in oracle....

    942425 wrote:
    id time
    1 1.20
    2 2.30
    3 4.20
    4 5.30
    5 1.00
    result expected = 14:40 or (if AM/PM so result is ???)
    how can i calculate the sum of time ???
    please give me some fast tricks of handling date/time formate in oracle....Hi,
    First you post in wrong forum. Please post at PL/SQL
    Before posting there close it and mark as answered.
    if your time is number data type then you can try this
    SELECT SUM(NVL(ROUND(TRUNC(DAC_OT_HOUR)+((TO_NUMBER (SUBSTR (DAC_OT_HOUR, INSTR (DAC_OT_HOUR,'.',1,1)+1)))/60)),0))
    FROM DA_CHECKHope this helps
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

Maybe you are looking for