Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8843731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:18:18+00:00 2026-06-14T11:18:18+00:00

I have a textbox for date display which shows the date in this format:

  • 0

I have a textbox for date display which shows the date in this format: 17/04/2012 but I would like to format it to shows up like ‘April 17, 2012’. I tried this code

UserForm1.txtDate = Format(Long Date)

which I am getting syntax error from compiler.Can you please let me know how I can do it?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:18:19+00:00Added an answer on June 14, 2026 at 11:18 am

    there have been couple of posts on this. Culprit seems to be your system date format. Use of short, medium, long formats will change the result when the system settings change.

    • In US systems mainly it’s done as, e.g. Format$(yourdate, “dd/mm/yyyy”)
    • Where as European systems, e.g. Format$(yourdate, “short date”)

    If we look at explicitly defining your format, you are formulating your regional settings!

    Good e.g. short date won’t always be mm/dd/yyyy but could be dd/mm/yyyy. That’s the key advantage over actually specifying the format. Simply you can change how you want your date to look like instead of depending on the system (with or without your knowledge).

    When we first encountered this, we had some making the VBA apps and sending it over to another in some other place where they have own localized system date format. Your phone rings… 😉

    • Short/Long Date: Display a date according to your system’s long date format.
    • Medium Date: Display a date using the medium date format appropriate for the language version of the host application.

    In your case you could use,

    UserForm1.txtDate.Value = Format$(Date,"mmmm dd, yyyy")
    

    Or to be super-safe,

    Dim dtDate as Date
        dtDate = DateSerial(Year(Date), Month(Date), Day(Date)) 
        UserForm1.txtDate.Value = Format$(dtDate, "mmmm dd, yyyy") 
    

    Hope that helps.

    • References
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code and i can only display it in a textbox <script
<%: Html.EditorFor(model => model.date)%> How can I make this code display an empty textbox
i have a textbox which is filled with date from a datepicker(calendar is accessed
I have this code in the view to display datepicker for input type.. Problem
How do I get my date to display like this: yy-mm-dd inside my date
I have a start date value to be entered in a textbox in dd/mm/yyyy
In my web application, I have users input a date in a simple textbox.
I have TextBox (multiline) and Label in an UpdatePanel which I refresh with javascript
Im creating forum like application and I have textbox where users can enter tags
Desktop window application. I have textbox in which user give values in numbers. what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.