In my Android App, I want to insert date from DatePicker to SQL Server DB. The Date type in SQL Server is datetime. I can get Day and Month and Year from DatePicker like this :
int day = datePicker.getDayOfMonth();
int month = datePicker.getMonth();
int year = datePicker.getYear();
But how should i pass it to SQL Server 2012? With which format?