different results for dates direct sql quire vs Matlab sql querry

3 ビュー (過去 30 日間)
Yang
Yang 2014 年 8 月 22 日
コメント済み: José-Luis 2014 年 8 月 22 日
I run a simple query to pull dates information from SQL Server database. I need the date to be greater or equal to the beginning date and less or equal to the end date.
If I query directly from the SQL database, I have no problem.
If I query from Matlab to pass the script to the SQL server, the results has been shifted for two days. Thus, the minimum date is 2 days before beginning date and the maximum date is two days before the maximum dates.
Is there any reason for that? and how to correct it?
  1 件のコメント
José-Luis
José-Luis 2014 年 8 月 22 日
Please provide a minimum working example illustrating your problem.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by