Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
7
Reply
how to give Calendar1.SelectedDate ?
Vasu Gadhiya
Sep 5 2013 4:29 AM
1.3k
Reply
I have use Calendar Control,
-------------------------------------------
void Calendar1_Load()
{
Calendar1.SelectedDate = DateTime.Today;
}
-------------------------------------------
it complete working but server return US Time. So i convert into india time
-------------------------------------------
void Calendar1_Load()
{
TimeZoneInfo INDIAN_ZONE = TimeZoneInfo.FindSystemTimeZoneById("India Standard Time");
DateTime indianTime = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, INDIAN_ZONE);
Calendar1.SelectedDate =
?
}
-------------------------------------------
but i don't Know how to set indiantime as selected date.
Thanks in advance.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
7
)
Next Recommended Forum
String Unique Id in ASP.Net
Web Service in ASP.NET