DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » How To » Date format

Date format

Hi,

I;m following the code to create a popup window for a new event. The output from the scheduler to the output window for the start date is

Sun,18 May 2008 00:00:00 UTC

Is there a way of geting the output to UK format 18/05/2008 ?

(I just need days)

Or do I have to parse it?

Cheers

John

John - 6/13/2008 10:28:57 PM
I would suggest passing it in sortable format (that's what DayPilot.ds() method does in this window.open example). The popup aspx should read the URL parameters. The sortable format will be readable directly using Convert.ToDateTime.

It could look like this:

InputStart.Text = Convert.ToDateTime(Request.QueryString["start"]).ToString("d")

Just replace ToString("d") with the format you prefer.
Dan Letecky - 6/16/2008 11:27:17 PM
Post reply