[Mono-list] Problems with DateTime (maybe a bug)

Arx Henrique arxcruz at gmail.com
Tue Aug 8 09:36:43 EDT 2006


Hello all,

I have a webservice running in my machine who accessa a database and
return one date.
When i get data from test form, i get this value (from database):

1984-08-08T10:35:15.9147790-02:00 as DateTime

then i assign to a variable with:

DateTime birth = (DateTime) row["table_in_database"]

all works perfectly, but if i try:
birth.ToString("dd/MM/yyyy") or any To*DateString()
always return on day less like: 07/08/1984

is this a bug or am i make something wrong?


-- 
"A fé remove montanhas, mas eu prefiro a dinamite"


More information about the Mono-list mailing list