Unix Technical Forum

problem trying to save a date field

This is a discussion on problem trying to save a date field within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi there, right now i'm working with a VB6 project that connects to a SQLSERVER 2000 using a System ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 10:01 PM
=?Utf-8?B?RmVsaXggUXVldmVkbyBDLg==?=
 
Posts: n/a
Default problem trying to save a date field

Hi there, right now i'm working with a VB6 project that connects to a
SQLSERVER 2000 using a System DSN.

I discovered a problem that, i hope you can help me.

The problem is that, when i try to save a record with a date field - the
date saved in database is 2 days more that the typed date. ALWAYS 2 DAYS!!!

Don't know why.

In order to save a record to DB i try to use val = cdec(val), where val is a
date value, and for strings values i just use val = "'" & val & "'", and so
on... for diferent types of fields.

Because i'm developing for a spanish environment i decided to convert dates
in the right format ("dd/mm/yyyy") and try to have regional settings that
match national language and location.

If anybody can help me, please i will appreciate it.

Felix.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com