SQL Convert Date from dd.mm.yyyy to dd-mm-yyyy -


i want select data set in specific date range. unfortunately date in form:

01.05.2016 , 02.06.2016 

in database, date in form:

2013-06-21 

how can convert date in sql query?

select `artikel`.*  `artikel`  (buchungsdatum >= '01.05.2016') , (buchungsdatum <= '02.06.2016') 

if mysql, can use str_to_date:

select `artikel`.*  `artikel`       buchungsdatum >= str_to_date('01.05.2016','%d.%m.%y')     , buchungsdatum <= str_to_date('02.06.2016', '%d.%m.%y') 

check here available date formats.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo