Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have an asp application with c# code behind which will be used to collect user entered data from all over the place. I am going to stamp the data with...

string.Format("{0: yyyy-MM-dd H:mm} MST", DateTime.Now);

This is going to happen in the code behind at the server. So the question is, will the stamp be the local time at the server, or the local time for the end user?

 

I tried to set up an experiment but it was less the successful.

 

Thanks

MTS

"Beer is proof that God loves us and wants us to be happy."

-Benjamin Franklin

  • 3 weeks later...
Posted
Just noticed that I failed to respond to this sorry. The "less then successful" was user error. I verified that the server uses local time. I just mis-adjusted the test PC's time and ran the function.

"Beer is proof that God loves us and wants us to be happy."

-Benjamin Franklin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...