• +91 9723535972
  • info@interviewmaterial.com

My SQL Interview Questions and Answers

Question - How to convert timestamps to date in MySQL?

Answer -

It is a rather simple question that requires knowledge on two commands, like DATE_FORMAT and FROM_UNIXTIME. 

DATE_FORMAT(FROM_UNIXTIME(`date_in_timestamp`), ‘%e %b %Y’) AS ‘date_formatted’

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners