Example usage for java.sql Timestamp getDay

List of usage examples for java.sql Timestamp getDay

Introduction

In this page you can find the example usage for java.sql Timestamp getDay.

Prototype

@Deprecated
public int getDay() 

Source Link

Document

Returns the day of the week represented by this date.

Usage

From source file:com.idega.bedework.data.BedeworkCalendarEntry.java

@Override
public int getDay() {
    if (getEntry() == null) {
        return -1;
    }//ww w  .  ja va2  s  . c  o m

    Timestamp date = getDate();
    if (date == null) {
        return -1;
    }

    return date.getDay();
}