Hi @vijay kumar
i want that it should store the data in the format of dd-mm-yyyy
The date is a binary field (stores binary value regardless of formatting). When SQL store date, it is not using any format at all. So, you do not store date in SQL by any format - only displays based on the local set of your server.
If you want to show dd/mm/yyyy, use the Format method or Convert / Cast on the Date field to change the format.
It is not suggested to store date in a particular varchar format. For example, what date was 11-6-2023? Was it the 6th of November 2023 or the 11th of June 2023?
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.