From f4704af31d5b59576ddef9abc137cee227d42def Mon Sep 17 00:00:00 2001 From: pbarros Date: Fri, 13 Jan 2012 18:03:58 -0200 Subject: [PATCH] Alterado pacote com classe utilitaria --- .../org/ufcspa/simdecs/util/UtilitarioSql.java | 35 -------------------- 1 files changed, 0 insertions(+), 35 deletions(-) delete mode 100644 src/java/org/ufcspa/simdecs/util/UtilitarioSql.java diff --git a/src/java/org/ufcspa/simdecs/util/UtilitarioSql.java b/src/java/org/ufcspa/simdecs/util/UtilitarioSql.java deleted file mode 100644 index bb4d35c..0000000 --- a/src/java/org/ufcspa/simdecs/util/UtilitarioSql.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -package org.ufcspa.simdecs.util; - -import java.text.SimpleDateFormat; -import java.util.Date; - -/** - * - * @author pbarros - */ -public class UtilitarioSql { - - - public void UtilitarioSql() - { - } - - public java.sql.Date converteDataUtilToSql(Date data) { - SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); - Date dataUtil = data; - java.sql.Date dataSql = null; - try { - dataUtil = new java.sql.Date(dataUtil.getTime()); - dataSql = (java.sql.Date) dataUtil; - - } catch (Exception e) { - //JOptionPane.showMessageDialog(null, "Erro ao converte data para sql: " + e.getMessage()); - } - return dataSql; - } - -} -- 1.7.6.4