﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - DateTime save in UK format</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DateTime-save-in-UK-format/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>DateTime save in UK format</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DateTime-save-in-UK-format/</link><pubDate>Fri, 18 Feb 2011 16:29:08 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Paul,&lt;/p&gt;&lt;p&gt;As far I know,  there should be no effect when using the culture. For temporary workaround, I suggest you to use WebInput. With WebInput, you can also customise Edit and Display format or event the masked format.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>DateTime save in UK format</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DateTime-save-in-UK-format/</link><pubDate>Thu, 17 Feb 2011 13:08:18 GMT</pubDate><dc:creator>pfletcher</dc:creator><description>&lt;p&gt;Hi Handy,&lt;/p&gt;&lt;p&gt;Surely the culture specified in the grid would effect the date time parsing?  I would expect to get an error for not being able to convert the date in the format of dd/MM/yyyy from a grid in US culture mode?&lt;/p&gt;
&lt;p&gt;From the outside it appears as if there is a DateTime.Parse somewhere in the code that has got a hard coded US culture passed into it.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>DateTime save in UK format</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DateTime-save-in-UK-format/</link><pubDate>Thu, 17 Feb 2011 10:14:19 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Paul,&lt;/p&gt;&lt;p&gt;Ok, I can replicate the issue. It is not because the culture. I can also replicate the issue in default culture.&lt;br /&gt;It seems this the DataFormatString issue.&lt;br /&gt;For some missing text issue in en-GB culture, please refer into &lt;a href="http://www.intersoftpt.com/Community/WebGrid/Localization/"&gt;http://www.intersoftpt.com/Community/WebGrid/Localization/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Some of list has not been filled. You can fill it manually regarding the previous thread.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>DateTime save in UK format</title><link>http://www.intersoftsolutions.com/Community/WebGrid/DateTime-save-in-UK-format/</link><pubDate>Wed, 16 Feb 2011 11:09:33 GMT</pubDate><dc:creator>pfletcher</dc:creator><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I'm having problems with the WebGrid and culture en-GB.  If I set the culture to custom and en-GB all the text is missing for menus etc. I assume the resource for en-GB hasn't been included in the dll.  However my problem is when I want to save UK date formats for the ObjectDataSource update method. I really don't want to have to write something to parse all the values from the web grid myself.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I'm using my columns like this:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Valid To" DataMember="ValidTo" 
                    DataType="System.DateTime" Name="ValidTo" Width="100px" 
                    EditType="CalendarCombo" DataFormatString="dd/MM/yyyy"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt; The culture of my application is set to en-GB in the web.config as follows:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;globalization uiCulture="en-GB" culture="en-GB"/&amp;gt;&lt;/pre&gt;
&lt;p&gt;So when the grid renders I get 24/07/2011 for example.  When I use the Calendar Combo to select the date I get the correct format again.  However when I save the row (I'm using batch update) I get the following javascript error:&lt;/p&gt;
&lt;p&gt;Message Title: Message from webpage&lt;/p&gt;
&lt;p&gt;Message Text:&lt;/p&gt;
&lt;p&gt;WebGrid failed to update 1 out of 1 changes due to errors.  Please review and correct your changes.&lt;/p&gt;
&lt;p&gt;The following records were not updated&lt;br /&gt;-Record " : Cannot convert value of parameter 'ValidTo' from 'System.String' to 'System.DateTime'"&lt;/p&gt;
&lt;p&gt;Obviously if I use a date such as 01 Feb 2011 it saves but switches to 02 Jan 2011.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for any help&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item></channel></rss>