Home Unanswered Active Tags New Question

day Error?

Hi Dan,

I have daypilot lite.

I have this problem :

if i have an Appointment in 15/01/2008 i see it in 13/01/08 .

maybe it's my mistake but i can't risolve it
Hope this helps

Asked by enrico 4 years ago.
Replies
I would guess you store the date and time in separate fields in the database and you supply just the time part as DataStartField. In such a case it adds 'today' as the date part. Please check the DB fields and let me know if that wasn't the problem.
Comment posted by Dan Letecky 4 years ago.

this is my sql select :

SELECT DcDocCommLav.ID AS Codice,DcDocCommLav.Data + DcDocCommLav.TimeBegin AS DataInizio, DcDocCommLav.Data + DcDocCommLav.TimeEnd AS DataFine .............

DataEndField = DataFine

DataStartField=DataInizio

i use sqlDatasource

Comment posted by enrico 4 years ago.
I would make sure that the SQL produces what you expect. Are you able to check the data source (e.g. by rendering it in a plain GridView next to DayPilot)?
Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java