sqlite convert 'dd.MM.yyyy' formated String to date

前端 未结 3 1574
情话喂你
情话喂你 2020-12-30 17:05

i have a sqlite database on my android, whith a datetime column, that contains a date with the Format dd.MM.yyyy. It\'s not my Database, I\'m niot able to change the Datefor

3条回答
  •  心在旅途
    2020-12-30 17:34

    Do you want do this in the database (SQL) or in program code? In Java you may use SimpleDateFormat

    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
    Date d = sdf.parse("21.03.1997");
    

提交回复
热议问题