Question : String to Timestamp
Answered by : michelle-hofer
import java.sql.Timestamp;
public class StringToTimeStamp { public static void main(String[] args) { String dateTime = "2020-12-12 01:24:23"; Timestamp timestamp = Timestamp.valueOf(dateTime); System.out.println(timestamp); }
}
Source : https://www.delftstack.com/de/howto/java/java-string-to-timestamp/ | Last Update : Wed, 01 Jun 22
Question : timestamp to string
Answered by : muhammad-hamza-shabbir
str('timestap value here');
Source : | Last Update : Wed, 13 Jul 22