0

display time in french format

asked 2010-06-13 16:33:37 +0800

soumaya gravatar image soumaya
99 1

updated 2010-06-14 03:22:16 +0800

Hi,

I would like the time on the graph to be displayed in french format, but i can't make it work on linux!

This is the peace of code that I am using:

DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy H:m");
Date d = dateFormat.parse(date);

long time = d.getTime();
xymodel.addValue("mytittle", time, y);

But on the graph the time is displayed in the format MM-DD-YY.

thanks for your help

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-06-14 20:50:43 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

updated 2010-06-14 20:53:01 +0800

How do you display your "time"? Using what component? It is better that you can provide a SIMPLE RUNNABLE sample zul code that will reflect your issue.

link publish delete flag offensive edit

answered 2010-06-15 03:21:02 +0800

soumaya gravatar image soumaya
99 1

updated 2010-06-16 12:59:26 +0800

Hi,

Here is how I am displaying the graph:

<chart id="timeseries" title="Mygraph" width="700" height="500" type="time_series" threeD="false" fgAlpha="128" />
<zscript>
XYModel xymodel = new SimpleXYModel();
timeseries.setModel(xymodel);
</zscript>

When I mousse over my graph I get something like Mygraph:( time,y) and here the time is displayed as MM-dd-yyyy H:M I want it to be

I would really appreciate your help.
Thanks

link publish delete flag offensive edit

answered 2010-06-20 20:40:20 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Check if this can help you.

http://www.zkoss.org/javadoc/5.0/zk/org/zkoss/zul/Chart.html#setDateFormat(java.lang.String)

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-06-13 16:33:37 +0800

Seen: 903 times

Last updated: Jun 20 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More