Go Back   SmartClient Forums > Smart GWT Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 12th Jul 2011, 08:41
paatal paatal is offline
Registered Developer
 
Join Date: Jun 2009
Posts: 86
Default DetailViewer custom date time format

Hi all
How I can to make custom date formatter for DetailViewer ?
I want to show text like that :
Code:
"11:00"
I want to show only time ?
is it possible ?

I found many thread here about custom formatter but they can't help me.

____________________
Regards,
Paata Lominadze

Last edited by paatal; 12th Jul 2011 at 10:51..
Reply With Quote
  #2  
Old 12th Jul 2011, 08:51
paatal paatal is offline
Registered Developer
 
Join Date: Jun 2009
Posts: 86
Default

of course if i set this code :
Code:
DateUtil.setNormalDateDisplayFormatter(new DateDisplayFormatter() {
				public String format(Date date) {
					if (date == null)
						return null;
					DateTimeFormat dateFormatter = DateTimeFormat
							.getFormat("HH:mm");
					String format = dateFormatter.format(date);
					return format;
				}
			});
date formats changed into whole application
I don't want it.
I want to change formatter for concrete DetailViewer

____________________
Regards,
Paata Lominadzd
Reply With Quote
  #3  
Old 12th Jul 2011, 10:51
paatal paatal is offline
Registered Developer
 
Join Date: Jun 2009
Posts: 86
Default

any Idea ??

____________________
Regards,
Paata Lominadze
Reply With Quote
  #4  
Old 14th Jul 2011, 08:50
paatal paatal is offline
Registered Developer
 
Join Date: Jun 2009
Posts: 86
Default

............
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to custom date format on SelectItem? dczech Smart GWT Technical Q&A 2 17th Jun 2011 12:06
Custom Date Format rukeller Smart GWT Technical Q&A 9 20th Aug 2010 01:47
ListGrid date and time format on edit polop Smart GWT Technical Q&A 1 21st Nov 2009 13:13
Issue related to Time format in Date. smulay Technical Q&A 0 21st Jul 2009 04:20
Javascript error when setting a custom input date format clavaud Smart GWT Technical Q&A 1 5th Feb 2009 12:53

© 2010,2011 Isomorphic Software. All Rights Reserved