Android SqliteDatabase Command formatCalendarForSQLite(Calendar calendar)

Here you can find the source of formatCalendarForSQLite(Calendar calendar)

Description

format Calendar For SQ Lite

Declaration

public static String formatCalendarForSQLite(Calendar calendar) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    public static String formatCalendarForSQLite(Calendar calendar) {
        SimpleDateFormat dateFormatter = new SimpleDateFormat(
                "yyyy-MM-dd hh:mm:ss.SSS");
        return dateFormatter.format(calendar.getTime());
    }/*from w  w  w  .  j  a v a2 s. co m*/
}

Related

  1. isCompanyInTour(SQLiteDatabase db, long companyId, long tourId)
  2. tourNameExists(SQLiteDatabase db, String tourName)
  3. getColumns(SQLiteDatabase db, String tableName)
  4. dropAllViews(SQLiteDatabase sqlitedatabase)
  5. getRowsCount(SQLiteDatabase sqlitedatabase, String s, String s1, String as[])
  6. getCalendarFromSqlite(String dateString)
  7. execMultipleSQL(SQLiteDatabase db, ArrayList sqlStatements)