How to remove timezone when convert from Date to DateTime
问题 I have a Date get from Database and I want convert it to DateTime and set it to begin day. I write it below: Date fromDate = studentDateJoin.getDate(); //result: fromDate = Mon Jan 01 00:00:02 ICT 2018 //convert to DateTime DateTime newDate = new DateTime(fromDate); But when I convert it add time zone after convert. newDate look like : newDate = 2018-01-01T14:13:04.574Z+7 I have a question: How to convert it to begin day and remove timezone: Example I want to convert it look like: //Convert