How to get date format in Look and feel setting using api

My connect app needs to synchronize date and date time fields in the same format as the Look and field setting. Is there any way to get that date format, by API or any other way ?
Thanks