java - How to store sql DEFAULT timestamp in a preferred format? -


actually searched , found related topics none satisfies need; why i'm asking question. hope can help:

i'm writing mysql tables in java; 1 column timestamp , want store timestamp in way want, this:

09 may 2016 14:20:13 utc 

,exactly this.

actually can part in mysql command:

select date_format( from_unixtime( unix_timestamp() ),'%d %m %y %h:%i:%s' ); 

but don't know how put in java , store timestamp column.

could help?

thanks in advance, paay


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -