search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot month start date time

Asked by Anonymous
8 years ago.

Hi,
I am using Daypilot month calendar to show weekly events. Start date and end date are not showing any minutes. For example, if an event start at 11.30am means its showing in the calendar as 11am. I would appreciate if you can help me to get the minutes part in the calendar.
Thanks

Answer posted by Dan Letecky [DayPilot]
8 years ago.

You can display the start and end time using the following properties:

<DayPilot:DayPilotMonth
EventStartTime="true"
EventEndTime="true
...
/>

Another option is to add the time at a specified location inside the event box using an active area:
http://doc.daypilot.org/month/event-active-areas/

Comment posted by Anonymous
8 years ago.

Thank you for your Reply Dan. Yes, I have set Event start time as true only. But it is not showing the minute part. Like I said if my event start at 11.20am, it is showing 11 in the calendar.
< DataStartField="Event_Start"
DataEndField="Event_End"
DataTextField="Location_Name"
DataValueField="Event_ID"
DataTagFields="Title"
EventFontColor= "Black" EventStartTime="true"
..../>

Comment posted by Anonymous
8 years ago.

protected void Page_Load(object sender, EventArgs e)
{
// Loading data from the database to the webpage load
if (!IsPostBack)
{
//DayPilotCalendar1.DataSource = dbgetevents(DayPilotCalendar1.StartDate, DayPilotCalendar1.EndDate);
//DayPilotCalendar1.DataBind();
DayPilotMonth1.DataSource = dbgetevents_monthcal(DayPilotMonth1.StartDate);
DayPilotMonth1.DataBind();
}
}
protected DataTable dbgetevents_monthcal(DateTime startdate)
{
String Con = @"……”;
SqlConnection conn = new SqlConnection(Con);
conn.Open();
DataTable dt = new DataTable();
string select_cmd = "select * from sample_event order by cast(start as datetime)";
SqlDataAdapter da = new SqlDataAdapter(select_cmd, Con);
da.Fill(dt);
return dt;
}

DB table:
recital 2016-05-18 14:30:00.000 2016-05-18 15:30:00.000

Comment posted by Anonymous
8 years ago.

In the calendar, event timing is displaying 2PM recital 3PM.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.