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

c# - ASP.NET MVC Sequence contains no matching element -

java - Parsing XML, skip certain tags -

rest - How to invalidate user session on inactivity in a stateless server? -