I want to convert timestamp, 1490198341.705
for example, to date 20170323
and to hour 11
(GMT+8:00). Are there any functions to solve this?
Try this:
select date_format(from_utc_timestamp(1490198341.705,'GMT+8:00'),'yyyyMMdd HH:mm:ss');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With