Jigar Naik wrote:will java.sql.Date work ?
I tried java.sql.Date but its giving me the same error illegal argument exception.
i think it will try to do the below, or will it cast to java.sql.Date ?
I think if the variable is declared as String, then also it works.
I have used such varibles which are dates and I have declared them as strings.
SQL server has many formats to store dates.You have convert method in SQL Server to convert the date to any format you want.
Information on convert method is available on internet