I want to change the DateTime from looking like "2012-05-02 24:12:23.000" to just display the hour and minute like "12:00".
The data is automatically put in the SQL table from a UDP message then the webpage loads the data into a grid.
I want to change the DateTime from looking like "2012-05-02 24:12:23.000" to just display the hour and minute like "12:00".
The data is automatically put in the SQL table from a UDP message then the webpage loads the data into a grid.
in sql server :
SELECT CONVERT(VARCHAR(5),getdate(),108)
in postgresql:
select to_char(now() , 'hh:mi')