c# - How to convert my datetime into 'DD-MM-YYYY' -



c# - How to convert my datetime into 'DD-MM-YYYY' -

how convert date time format '30-10-2014 00:00:00' '30-10-2014' want remove timing. have tried

update table set fromtime='3:00pm',totime='3:00pm',bookingdate= (datetime,'30-10-2014 00:00:00' ,105

how write query this.

try method:

private string convertfromepoch(long epoch, string timezone) { timezone tz = datetime.gettimezone(timezone, null); datetime dt = new datetime(epoch); string dtfmt = dt.format("dd-mm-yyyy", tz); homecoming dtfmt; }

c# date datetime

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -