PC Review


Reply
Thread Tools Rate Thread

DateTime sql server - sqldataadapter

 
 
Eric
Guest
Posts: n/a
 
      21st Feb 2005
Hi,

I have a DateTime in one of my table in sql serveur. The format of the
datetime is yyyy-mm-dd. I have an sqladapter in my application
connected with this table and when the format of the date is not
yyyy-mm-dd (on the local computer where my application is running), I
have some problem with the insert/upgrade. My question is: How can I
change the value in the sqldataadapter just before the update?
(because all I display is the hour or the date and the yyyy-mm-dd are
fixed) so I try via the dataset but it doesnt work.
Thanks
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      21st Feb 2005
Eric,

The format of the datetime in a SQLserver are ticks accoording to a certain
start time (which I always forget).

When presentated are those translated accoording settings of the
computer/database or the code that is used in the program. (See for that the
overloaded function of ToString() for datetimes. Be so clever to use the
short notations (by instance "d") and not the very hardcoded ones as
"dd:MM:yyyy")

I hope this helps?

Cor


 
Reply With Quote
 
Eric
Guest
Posts: n/a
 
      22nd Feb 2005
"Cor Ligthert" <(E-Mail Removed)> wrote in message news:<#(E-Mail Removed)>...
> Eric,
>
> The format of the datetime in a SQLserver are ticks accoording to a certain
> start time (which I always forget).
>
> When presentated are those translated accoording settings of the
> computer/database or the code that is used in the program. (See for that the
> overloaded function of ToString() for datetimes. Be so clever to use the
> short notations (by instance "d") and not the very hardcoded ones as
> "dd:MM:yyyy")
>
> I hope this helps?
>
> Cor


Yes, thank you.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Millisecond values missing when inserting datetime into datetime column of sql Server Manikandan Microsoft C# .NET 4 18th Jul 2007 08:59 PM
How can I save a DateTime from my C# program into a SQL Server (datetime) database column. Steve Kershaw Microsoft ASP .NET 5 29th Aug 2006 03:10 AM
How do you save a (C#) DateTime into a SQL Server datetime column? Steve Kershaw Microsoft ASP .NET 0 26th Aug 2006 06:59 AM
Inserting C# datetime milliseconds into sql Server DateTime tk042383 Microsoft ADO .NET 2 4th May 2004 04:28 PM
SQLDataAdapter DateTime Matt Microsoft VB .NET 1 27th Aug 2003 08:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:58 AM.