010, MySQL date time date time stamp into text

# Timestamps converted text time
 SELECT
    from_unixtime( unix_timestamp( curdate( ) ) );
    
# Timestamp conversion time formatting text
SELECT
    from_unixtime( unix_timestamp( curdate( ) ),'%Y--%m--%d' );
    

Results are as follows:

 

 

Beginning of the heart do not forget, if you think this article valuable, authors agree to pay, micro-channel two-dimensional code can be any amount of a reward to the author (Micro Signal: 382 477 247) Oh, thank you.

Guess you like

Origin www.cnblogs.com/tianpan2019/p/11841343.html