WebGrid Community Server

Welcome to WebGrid Community Server Sign in | Join | Help
in Search

DateTime Picker issue?

Last post 09-02-2008, 20:09 by jh-hamptonpark. 3 replies.
Sort Posts: Previous Next
  •  06-04-2008, 18:47 568

    DateTime Picker issue?

    I have a simple grid that allows for entry of birthdates and anniversaries for employees. When I am editing a record and use the DateTime Picker it returns the date I select except it's a month behind. For example, if I select 3/1/2008 it returns 2/1/2008 or, if I select 1/1/2008 it returns 0/1/2008.

    Here's my webgrid code:

    <WG:Grid ID="grdMain" DisplayRequiredColumn="true" runat="server" DataSourceId="BirthDates" ExportFileName="BirthDates Export.xls" ImagePath="http://msbweb/Common/images/WebGrid/" PageLength="50" Title="MSB Birth Dates">

    <Columns>

    <WG:Number Primarykey="true" ColumnId="ID" Identity="true" Visibility="None" NewRowInEdit="true" />

    <WG:Text AllowEdit="true" AllowEditInGrid="true" IsInDataSource="true" Visibility="Both" WidthEditableColumn="150px" ColumnId="FullName" Title="Full Name" MaxSize="50" Required="true" UniqueValueRequired="true" NewRowInEdit="true" />

    <WG:DateTime AllowEdit="True" AllowEditInGrid="True" IsInDataSource="True" Visibility="Both" WidthEditableColumn="70px" ColumnId="BirthDate" Title="Birth Date" MaxSize="10" Required="true" NewRowInEdit="true" />

    <WG:DateTime AllowEmpty="true" AllowEdit="True" AllowEditInGrid="True" IsInDataSource="True" Visibility="Both" WidthEditableColumn="70px" ColumnId="MSBAnniversary" Title="Anniversary" MaxSize="10" Required="false" NewRowInEdit="true" />

    </Columns>

    </WG:Grid>

  •  07-08-2008, 4:45 604 in reply to 568

    Re: DateTime Picker issue?

    I am experiencing this issue as well. A fix or workaround would be appreciated. If the developers don't have time to address these issues can we take a look at the source and try to fix it ourselves?
  •  08-20-2008, 16:56 742 in reply to 568

    Re: DateTime Picker issue?

    I am experiencing this same bug with WebGrid version 2.5.0.0

    Is there a way to replace the built-in DateTimePicker with our own?
  •  09-02-2008, 20:09 760 in reply to 742

    Re: DateTime Picker issue?

    I had the same problem and found that if i add

    Format="MM/dd/yyyy"

    to the WG:DateTime column code, it works fine. 

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems