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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -