How to format Joda-Time DateTime to only mm/dd/yyyy?

前端 未结 9 1253
挽巷
挽巷 2020-11-29 15:52

I have a string \"11/15/2013 08:00:00\", I want to format it to \"11/15/2013\", what is the correct DateTimeFormatter pattern?

9条回答
  •  悲哀的现实
    2020-11-29 16:07

    Please try to this one

    public void Method(Datetime time)
    {
        time.toString("yyyy-MM-dd'T'HH:mm:ss"));
    }
    

提交回复
热议问题