Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use the server date?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00819947
Message ID:
00819950
Views:
24
Stephen,

Have you tried using a Default on the column in SQL Server?

~~Bonnie


>We have a field in all tables called dLastChange which store the DateTime of the last change to the record. Currently I use this code:
>
>
>dataRow["dLastChange"] = DateTime.Now;
>
>
>How can I use the server clock instead of the client clock? How do I use the "getdate()" function of the SQL Server when I save a record with MM.NET?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform