how to convert the current date to time-stamp through code
String timeFormat = "dd.MM.yy, h:mm a";
Calendar c = Calendar.getInstance();
SimpleDateFormat df = new SimpleDateFormat(timeFormat);
String formattedDate = df.format(c.getTime());
Log.d("print"+c.getTime());
is it possible to convert the c.getTime to timestamp
this is my code but i dont know how to convert it to timestamp.