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

Date format

Asked by John
15 years ago.

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

Comment posted by Dan Letecky
15 years ago.
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.
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.