Home Unanswered Active Tags New Question

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

Asked by John 3 years ago.
Replies
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.
Comment posted by Dan Letecky 3 years ago.
New Reply
This reply is
Your name (optional):

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