TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bineeshcp Viswanath
NA
140
39.3k
Time Zone issue in Web Project running time asp.net c#
May 13 2019 5:46 AM
Dear All,
I need your help to solve an issue in datetime difference in my asp.net c# project.
The project already hosted in godaddy.
The issue is that when i run my project in local host, date & time working good. But when i run website from hosted server, date time showing a different time zone.
In my c# code , i wrote like this to get current time zone.
var ArTimeZone = TimeZoneInfo.FindSystemTimeZoneById(TimeZoneInfo.Local.Id);
and in insert function parameter , i assigned below format.
Convert.ToDateTime(CurrentDateTime.ToString("dd/MM/yyyy hh:mm:ss tt")));
Reply
Answers (
4
)
carousel not working
Web hosting for Java web app running on glassFish server