Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.6 KB

File metadata and controls

57 lines (42 loc) · 1.6 KB
title setDate Method to date and calendar - int | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerPreparedStatement.setDate (int, java.sql.Date, java.util.Calendar)
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 2c46f694-6dc4-429f-a037-a3bad369a7c8
author David-Engel
ms.author v-daenge

setDate Method (int, java.sql.Date, java.util.Calendar)

[!INCLUDEDriver_JDBC_Download]

Sets the designated parameter to the given date and calendar values.

Syntax

  
public final void setDate(int n,  
                          java.sql.Date x,  
                          java.util.Calendar cal)  

Parameters

n

An int that indicates the parameter number.

x

A Date object.

cal

A Calendar object.

Exceptions

SQLServerException

Remarks

This setDate method is specified by the setDate method in the java.sql.PreparedStatement interface.

See Also

setDate Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class