Tuesday, 29 January 2019

How To Get The Time Portion from Getdates





To get the date portion only from get dates try the following 



select CONVERT(VARCHAR(5),GETDATE(),114)   

this can then be used to see if  a time has passed


CONVERT(VARCHAR(5),GETDATE(),114)>'15:00' 

No comments:

Post a Comment

Multi Point USB Charger

  USB Plug Charger, 4-Port USB Fast Charger Plug with 33W Intelligent Quick Charge 3.0 Wall Charger, Multi USBPower Adapter UK Fast Charging...