Share via

Excel VBA Date Format Error

Anonymous
2019-12-20T05:51:38+00:00

I have Select format in Text box

Me.Start_date = Format(Me.Start_date, "DD/MM/yyyy")

but when save in database Date changed .

Entry Date 01-12-2019

Database Date 12-01-2019 

My PC Format is DD-MM-YYYY

Please Help me what is wrong with Code.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2019-12-20T10:18:54+00:00

    What is the line that saves the date in the database?

    Was this answer helpful?

    0 comments No comments