Click here to Skip to main content
15,887,289 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am fetching Start Date and End Date from Database by following Query:

C#
var contents = from u in entity.Submit_App
                       where u.EndDate >= currenteDate && u.StartDate < currenteDate
                       select new { u.App_Icon, u.App_ID, u.Actual_Price, u.App_Description, u.App_Title, u.EndDate,u.StartDate, u.iTunes_Link };


when checking the web services its gives the following output

C#
"EndDate":"2013-09-28T19:30:00+05:30","StartDate":"2013-09-26T18:01:00+05:30"


I need to remove +5:30 in both start and End Date or Atleast Add "GMT" in front of +5:30
Posted
Comments
ArunRajendra 27-Sep-13 1:11am    
use datetime.ToString to format. Reference here http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900