Date Format (1 Viewer)

gsrajan

Registered User.
Local time
Today, 12:45
Joined
Apr 22, 2014
Messages
227
Please let me know how to convert a date format from 6/11/2020 to June, 11, 2020 in a text box field in a form and also it get saved in the table in the same format. Thanks for your help.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:45
Joined
Oct 29, 2018
Messages
21,478
Hi. Formatting is separate from the value. I suggest you format the value for display, but store it as the actual value. You could try something like this:

Format([DateField], "mmmm, dd, yyyy")
 

Micron

AWF VIP
Local time
Today, 12:45
Joined
Oct 20, 2018
Messages
3,478
No code needed if you simply use the textbox format on the property sheet - Long Date
I guess that depends on whether or not the example you posted matches your regional settings.
 

gsrajan

Registered User.
Local time
Today, 12:45
Joined
Apr 22, 2014
Messages
227
Thank you all. Format([DateField], "mmmm, dd, yyyy") is fine with me. It works. Thanks.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 09:45
Joined
Oct 29, 2018
Messages
21,478
Thank you all. Format([DateField], "mmmm, dd, yyyy") is fine with me. It works. Thanks.
Hi. You're welcome. Glad we could assist. Good luck with your project.
 

Users who are viewing this thread

Top Bottom