wondery Posted November 19, 2003 Posted November 19, 2003 i using command datetime.now and it return 17/11/2546 but in window system and sqlServer accept in 11/17/2003 so it get out of range problem in my computer using same customer's computer setting in reginal setting ... my computer is fine and normal working but in customer's computer get this problem how slove ? in c# command datetime.now get date value from reginal setting, right ? thanx Quote
Machaira Posted November 19, 2003 Posted November 19, 2003 (edited) How about: DateTime.Now.ToShortDateString or: DateTime.Now.ToString("MM/dd/yyyy") Edited November 19, 2003 by Machaira Quote Here's what I'm up to.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.