select the date from ms access in dd.mm.yyyy format

Adesh singh picture Adesh singh · Dec 20, 2012 · Viewed 11.4k times · Source

I want to select the data from the database using select command but the result is showing in yy.mm.dd format while i want the result in dd mm yy format I am using the following commad

  select  date from table1 order by date desc;

how can i get the date in dd mm yyyy format please help me

Answer

Damian Leszczyński - Vash picture Damian Leszczyński - Vash · Dec 20, 2012

You need to user format function for date.

select format([date], "dd.mm.yyyy") from table1 order by [date] desc;