Welcome Guest Search | Active Topics | Sign In | Register

datepicker get bad day Options
Eduardo
Posted: Tuesday, May 10, 2011 12:30:52 PM
Rank: Newbie
Groups: Member

Joined: 5/10/2011
Posts: 1
Hi

My question is because the datepicker don't reflects the real day when i try to edit a form

When i income the date, i got no problem at all... but when i try to edit it... the datepicker show me a day before that it realy is

Using the trace tool of sql, the date that it most show, it's completely right... but insists in show, if a 9 day, a 8 day... if i just record, ignoring the date; of course the date change it like if i picked the day before


Right now i'm using :

Code: HTML/ASPX
<eo:DatePicker ID="dTermino" runat="server" ControlSkinID="None" DayCellHeight="16"
                                DayCellWidth="19" DayHeaderFormat="FirstLetter" DisabledDates=""
                                OtherMonthDayVisible="True" SelectedDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL"
                                PickerFormat="dd/MM/yyyy" TitleRightArrowImageUrl="DefaultSubMenuIcon" VisibleDate="2010-02-01">
                                <TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid" />
                                <SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                                <DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                                <PickerStyle CssText="font-family:Courier New; padding-left:5px; padding-right: 5px;" />
                                <CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma" />
                                <TitleArrowStyle CssText="cursor:hand" />
                                <DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid" />
                                <MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px" />
                                <TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;" />
                                <OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                                <DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid" />
                                <DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
                                <WeekendDayStyle CssText="font-family: tahoma; color: #FF0000; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
</eo:DatePicker>


in C# i use ".SelectedDate" to consult or record

Thanks
eo_support
Posted: Tuesday, May 10, 2011 1:03:33 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Your code looks fine to us. The DatePicker gives you a single DateTime value through SelectedDate property. So that's what you will need to check first. If that property has the correct value, then the problem is somewhere else unrelated to the DatePicker. If that property has the wrong value, please create a test page to demonstrate the problem and we will be happy to take a look.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.