On 07/14/2010 12:02 PM, santosh kumar wrote:
> Hi Alexander,
> 
> I went through below demo, but it is showing the use of different date
> formats. Actually I want to set time(12 or 24hr format) not date. How
> can I do it?

You need to create a DateFormat object with the appropriate format
string, e.g.

  var d = qx.util.format.DateFormat("hh:mm")

Then you can call its .format() method on an actual Date, and it will
return the formatted string:

  alert(d.format(new Date));

You might want to look at this other demo, maybe it is more what you
look for:

http://demo.qooxdoo.org/devel/demobrowser/index.html#showcase~Localization.html

T.

> 
> Thanks in advance,
> santosh
> 
> On Wed, Jul 14, 2010 at 12:34 PM, Alexander Steitz
> <[email protected] <mailto:[email protected]>> wrote:
> 
>     Hi Santosh,
> 
>     Am 14.07.2010 07:48, schrieb santosh kumar:
>     > Thanks for the reply.
>     > Can you please send me a sample code snippet for setting time by using
>     > DateFormat as suggest by you?
>     The demo at
> 
>     <http://demo.qooxdoo.org/current/demobrowser/#widget~DateField.html
>     <http://demo.qooxdoo.org/current/demobrowser/#widget%7EDateField.html>>
> 
>     is showing the use of different date formats. This should help you
>     further.
> 
>     cheers,
>       Alex
> 
>     
> ------------------------------------------------------------------------------
>     This SF.net email is sponsored by Sprint
>     What will you do first with EVO, the first 4G phone?
>     Visit sprint.com/first <http://sprint.com/first> --
>     http://p.sf.net/sfu/sprint-com-first
>     _______________________________________________
>     qooxdoo-devel mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> 
> 
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to