The European format of dd/mm/yy hh:mm isn't supported by SQL, is there any way to create one? I am trying to return it in a stored procedure like so:
ALTER PROCEDURE dbo.GetMeetingByCustomerID
@CustomerID nvarchar(50),
AS
SELECT ProfessionalID, MeetingDate, Cost, HasReview, Approved
FROM Meeting
WHERE (CostumerID = @CostumerID)
ORDER BY MeetingDate ASC
RETURN
The only problem is that it returns it in the wrong format. Is there a way to create a new one? Thanks. EDIT: I solved this. what I did was:
MeetingDate = DateTime.Parse(Meetings.Tables[0].Rows[i][1].ToString());
string d = MeetingDate.ToString("hh:mm dd/MM/yy");
Formattinga date is responsability of the application that gets the date back from your query, unless you try to return a character strings instead of a date