DateTime.Now function question!

  • Thread starter Thread starter DBC User
  • Start date Start date
D

DBC User

Hi,

I have a program where I store DateTime.Now in a database table. For
some reason in my query the datetime comes up as comma seperated
number. Like dateRequest = 39141,2890187037
This is happening only in a computer in Latin America. Any idea why I
am getting a comma?

Thanks.
 
DBC User said:
I have a program where I store DateTime.Now in a database table. For
some reason in my query the datetime comes up as comma seperated
number. Like dateRequest = 39141,2890187037
This is happening only in a computer in Latin America. Any idea why I
am getting a comma?

You need to give more information. What is the type of the column in
the database? How are you storing the data in the database? How are you
fetching it?
 
Jon said:
You need to give more information. What is the type of the column in
the database? How are you storing the data in the database? How are you
fetching it?

More to the point, how are you verifying that the value is a floating
point number? ie. what are you doing that is showing that number on the
screen, are you looking at it through sql in EM or a similar tool? Are
you inspecting a variable, using Debug.WriteLine? More details are needed.
 
Try changing the culture. Often in Latin and European cultures the comma is
used as en-us uses a period.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top