Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with new Date() #159

Open
melvintcs opened this issue Oct 9, 2012 · 0 comments
Open

problem with new Date() #159

melvintcs opened this issue Oct 9, 2012 · 0 comments

Comments

@melvintcs
Copy link

there is some error when i signing some event from code behind.

DateTime startTime = new DateTime(2012, 11, 10, 12, 0, 0);
DateTime endTime = new DateTime(2012, 11, 10, 13, 0, 0);

the data above suppose to mark the event on 10 Nov 2012, but the calendar read as 11 Oct 2012.

But if i change the date to:
DateTime startTime = new DateTime(2012, 11, 13, 12, 0, 0);
DateTime endTime = new DateTime(2012, 11, 13 13, 0, 0);
The system read it as 13 Nov 2012 which is correct.

please guide me how to make sure the system always follow the second standard? (yyyy, mm, dd)

@melvintcs melvintcs reopened this Oct 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant