Android SqliteDatabase Command getCalendarFromSqlite(String dateString)

Here you can find the source of getCalendarFromSqlite(String dateString)

Description

get Calendar From Sqlite

Declaration

public static Date getCalendarFromSqlite(String dateString) 

Method Source Code

//package com.java2s;
import java.text.ParseException;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static Date getCalendarFromSqlite(String dateString) {
        SimpleDateFormat dateFormatter = new SimpleDateFormat(
                "yyyy-MM-dd hh:mm:ss.SSS");
        try {/*  w  w  w  . j  a  va 2  s .c  om*/
            return dateFormatter.parse(dateString);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return null;
    }
}

Related

  1. tourNameExists(SQLiteDatabase db, String tourName)
  2. getColumns(SQLiteDatabase db, String tableName)
  3. dropAllViews(SQLiteDatabase sqlitedatabase)
  4. getRowsCount(SQLiteDatabase sqlitedatabase, String s, String s1, String as[])
  5. formatCalendarForSQLite(Calendar calendar)
  6. execMultipleSQL(SQLiteDatabase db, ArrayList sqlStatements)