.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Confirm/Update people's time zone settings

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :C#

I need to confirm each user's time zone settings.  How do I run a report to confirm each user's time zone settings.  Additionally, I need to update the user accounts that are set incorrectly. 

I have found numerous posts on the web that suggest I have each individual do this for themselves or to site down with each user and set this up while they are logged in, but these are absolutely insane suggestions, so please share with me how this is support to be done.

View Complete Post

More Related Resource Links

time zone


Hi all,
I have hosted a retail web application in Godaddy, how to pick particular country time in asp.net.
Thanks in advance.
J Walia

Hi all,

I have hosted a retail web application in Godaddy, how to pick particular country time in asp.net.

Thanks in advance.

J Walia

Convert Update Date/Time to VB.NET



I was wondering if someone could convert this into VB.NET for me.  I'm not a PHP pro and not entirely sure what's happening here nor do I know how to get this to display the same way.

The new field is within a DetailsView, so you can give me example code as well, I'll greatly appreciate it.

Thanks.. -Jeff

PHP Code:

function updFormat($tStamp) {
	$tsTime = (strftime('%I', $tStamp) + 0) . strftime(':%M %p', $tStamp);
	// 86400 == # of seconds in a day
	$tsDays = floor($tStamp / 86400);
	$nowDays = floor(time() / 86400);
	if ($tsDays == $nowDays) $updTime = "Today at $tsTime";
	elseif ($tsDays == $nowDays - 1) $updTime = "Yesterday at $tsTime";
	else $updTime = strftime('%b ', $tStamp) . (strftime('%d', $tStamp) + 0) . strftime(', %Y' , $tStamp);

	return $updTime;
<asp:DetailsView ID="dtv_LastUpdated" runat="server" Width="100%" 
    AutoGenerateRows="False" DataSourceID="ods_MVPParcelUpdate" 
    CellPadding="1" CellSpacing="1" GridLines="None">
        <asp:BoundField DataField="Update_time" HeaderText="Parcel Data:" 

Convert ServerTime to purticuler Time Zone



how to convert server time to a purticuler TimeZone


How can i update treeview root node every time based on the record entries

Hi all, I will have an mdi form and with a treeview which has it's initial property as visible =false. If i select an option from menu a child form will exists i will fill some details and click on save when ever click on save i will make the root node of the treeview to some name as File[batch count:0]. Now if i select another option from menu another form will appear and if i fill it with some details and click on save i would like to change the root node name to File[batch count:1] and a child node should exists with some name

Server Time out settings question

I’ve followed the instructions for the login time out but we are still getting time outs prompting login within less than the stated time (currently set to 30 minutes). I’ve evenn tried setting it to never time out, but still we have to re-login after about 20 minutes…. Do you know if there is a further setting somewhere that would over ride this one? Configuring login expire time for sharepoint site   You need to set the "security validation time-out":   Central Administration > Application Management > Web Application General Settings (be sure to do this for the correct web application)   Ensure that Security Validation is On and set the timeout to 20 min. (default 30 min).   ThanksSharepoint Customiser

update/insert parent child at the same time

Hi Al, Is there a way to create a contact form that takes the name. address and other info for the master record; Then, somehow, on the same page, allow the user to enter multiple contact info as chid records (i.e. phone, email, etc.) All this using the Objec DataSource or SQL DataSource (which ever is easy) and doesn't require writing too much code. Any reference material welcomed. Thanks, rod.

How to confirm that OS date and time has been changed?



How to confirm that the system OS date and time has been changed in .Net?


Gnanasekar Babu Note: Please click on the vote button if the answer helps you

Global Time settings in asp.net


Dear All,

My web application has hosted on the canada server but my all clients are indians.So, as I am using System.datetime.Now to store all the dates in application.Obviously, it is displaying the canadian time instead of india time.

How can i do it?Is there not any gloabl settings that we can do in our web.config file so that it indicates to the server at run time which time zone to execute..?

Or any other suitable alternate?

Very urgent!!!

Reply fast kindly.

Thanks and regards.

Rajnish chattha.

How to Refresh Gridview data from update panel in specified time


hello frnds,

i have some search criteria.

after filling all criteria when i press search button the result arrives in gridview nw when searchbutton pressed after that every 20seconds i want 2 update gridview data which is in update panel

There are too many people accessing the Web site at this time


Hello When I publish my application and host that into IIS.

I got Below errer when i try to access my application from browser.

"There are too many people accessing the Web site at this time"



Ashish Patel, MCTS Software Engineer [Level - 2]

mysql time zone



   i have changed the srver time zone to +05.30 but mysql timezone is not  changing it's time zone according to the system time ...... so please help me to change the mysql timzone.............

Profile import does not update People and Groups


I've come across an odd issue which hopefully you can help with.

I have around 12000 objects in my AD domain which have been imported fin usig the profile import schedule.

If for example an attribute is changed for a user, say job title or department it does not seem to be updated within the people and groups page of site settings.

However if I perform a people search or check the profile in CA then it's updated fine???

Should the profile import / update process also update the attributes in People & groups or this a one off snapshot taken when the user is added to a specifi site or group???

Many Thanks


How do I convert UTC to specified time zone in T-SQL (SQL Server 2008 R2)?


Question: How do I convert UTC time to specified time zone using SQL in SQL Server 2008 R2?


Scenario: I have a database/ASP.NET application that I use to manage people from quite a few different time zones. In order to keep activities coordinated, all the times in the database are UTC time. Each user's TimeZone is also registered in the database using .NET Framework time zoneIDs e.g. Eastern Standard Time.

In my query I want to specify a date and pull all the activities for that date. However, because all time stamps are UTC times, sometimes an individual's activies fall on two consecutive days in UTC time zone even though the individual completed them on the same day in his/her time zone. As a result, I get misleading data.

When I specify a date, I want that date to be considered user's date. That means, I need to convert all the activity time stamps into user's time zone in my query. This is where I can use some help.

Thanks, Sam

Correct Time Dimension Settings to Hide Extra Years in Drop List


This is going to be easy for the experts to answer (I hope). Here is my problem:

1) I have a Fact table that is linked via a TimeKey (Not date, it is a number) to the Time Dimension table. (I want to build a cube in SSAS)

2) The Fact table contains data from 2008 to 2010 (YTD)

3) The Time Dimension Table includes years  between 2005 to 2015

My problem is:

When I drop years into a column (in the browser) I get the correct year range between 2008 and 2010 (which is correct)


At the same time, when I use the drop down list of the column I can see all the years from 2005 to 2015. (Which is included in the Time Dimension Table)

How can I make those "extra" years disappear from the drop down list? How can those years appear in the browser even though there is no matching "TimeKey" in the fact sheet that would link them.

I know this maybe a simple setting in the Time Dimension but I cannot find it.

Your help is greatly appreciated.


infopath form - One form many people need to update sametime



If I have only one infopath form and many people wants to update the same form..is't possible to lock to other user who are trying the sametime?

This situation how I can achive in order to avoind conflict? Please advise.

Thanks in advance.

SELECT INSERT DELETE UPDATE happening at the same time


Hi All,
I have three table and SELECT DELETE INSERT UPDATE happening at the same time.
Join query is used for SELECT and DELETE.
INSERT and UPDATE no join query.
What are the actions to be taken to avoid deadlock. Will indexing help to resolve the dead lock.
Appreciate somebodys help immediately.



update the Oracle time stamp and userid when using Gridview



  I am using Gridview against Oracle 9i and I am using the GridView update function to update table fields when someone edits a row.  I have captured the userid and the date/time when someone peforms this function but I have yet to figure out how to get it into the GridView row so that when the update button is pushed, the current date and time and the user's userid it displayed in the row of the table.  I've tried many different things but am at a loss to nail down the code for this.  Below is a piece of the code I am working with.




using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Sec

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend