Hi Gopal, Please post Smart GWT related questions on the Smart GWT forum : http://forums.smartclient.com/forumdisplay.php?f=14
Thanks, Sanjiv On Mon, Jun 14, 2010 at 4:27 AM, gopal bhalala <gopalbhal...@gmail.com>wrote: > I am using exportData on listGrid...Its working fine if i have only normal > fields like text. But I have a problem with date field (without time). My > exported data comes with time value (ex. 01/06/10 00:00:00 ) but I use > "EuropeanShortDate" in data source. > > I need only date value in exported data file. > > Please suggest us that how I remove time (00:00:00) value and also how I > make date field as customized. > > Below is snippet of my code. > > Datasource: > .............. > <field name="DOB" title="DOB" type="date" useTextField="true" > textAlign="LEFT" dateFormatter="toEuropeanShortDate" /> > .................. > ................. > > Code: > (1) DSRequest dsRequestProperties = new DSRequest(); > (2) dsRequestProperties.setExportAs( (ExportFormat) EnumUtil.getEnum > (ExportFormat.values(), "csv")); > (3) dsRequestProperties.setExportDisplay(ExportDisplay .DOWNLOAD); > (4) cmps.gamesTree.childList.getField > ("crew_in_date").setType(ListGridFieldType.DATE ); > (5) cmps.gamesTree.childList.exportData(dsRequestPrope rties); > > > Thanking you, > Gopal Bhalala > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.