IIn my database the date is 20140623 yyyymmdd format but when get this date from database using query then I want to change the date dd-mm-yy format how to convert at runtime fire query
Refer this
DECLARE @Date DATETIME SET @Date ='20140623' SELECT CONVERT(VARCHAR(11),@Date,105)
Output
23-06-2014
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.