select convert(varchar,DOB,101) from emp
101 means “mm/dd/yyyy” format
108 will return just the time “hh:mm:ss”
SELECT CONVERT(DATETIME, FLOOR(CONVERT(FLOAT, DOB))) from emp
SELECT CONVERT(DATETIME, FLOOR(CONVERT(FLOAT, DOB))) from emp
where CONVERT(DATETIME, FLOOR(CONVERT(FLOAT, DOB)))>'10-25-2010'
Showing posts with label Select Date From DateTime In SQL. Show all posts
Showing posts with label Select Date From DateTime In SQL. Show all posts
Thursday, October 28, 2010
Subscribe to:
Posts (Atom)
Mat Table Angular
Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...
-
SortingCollection sc = new SortingCollection(); sc.Add (new SortProperty("field on which you want to sort",DevExpress.Xpo.DB.Sorti...
-
CriteriaOperator criteria = new BinaryOperator("Age", 30, BinaryOperatorType.Greater); CriteriaOperator criteria = CriteriaOperato...
-
Minification and Uglyfication in Angular Deployement Minification : While building Angular Application white spaces , unused variable , u...