Show customize date format

Some times we need to show date at customize format. As usual we can’t use format function to format the date at SQL. For that we need to use date_format function to show it.Example is bellow.

select date_format(column_name, ‘%d-%m-%Y’) from table_name;

Advertisements
Posted in Command, MySql. ট্যাগ সমুহঃ , , , . Leave a Comment »

মন্তব্য করুন

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / পরিবর্তন )

Twitter picture

You are commenting using your Twitter account. Log Out / পরিবর্তন )

Facebook photo

You are commenting using your Facebook account. Log Out / পরিবর্তন )

Google+ photo

You are commenting using your Google+ account. Log Out / পরিবর্তন )

Connecting to %s

%d bloggers like this: