Datatable.Select and datetime type

  • Thread starter Thread starter MichalR
  • Start date Start date
M

MichalR

Hi,

I'm using this when selecting some rows (VB.NET):

Rows=Table.Select('date_column>=#" & Format(MyDate,"MM/dd/yy") & "#')

Is it really the only way to be locale independent when using filter
expressions? I cannot find any method converting datetime type into
"universal string date".

Thanks in advance for any suggestions.
Michal
 
Hi,

MichalR said:
Hi,

I'm using this when selecting some rows (VB.NET):

Rows=Table.Select('date_column>=#" & Format(MyDate,"MM/dd/yy") & "#')

Is it really the only way to be locale independent when using filter
expressions? I cannot find any method converting datetime type into
"universal string date".

Use CultureInfo.InvariantCulture, like
data.ToString(CultureInfo.InvariantCulture)
 

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