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 133249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:23:50+00:00 2026-05-11T06:23:50+00:00

I am writing a month calendar-style control, and need to display a string that

  • 0

I am writing a month calendar-style control, and need to display a string that indicates today’s date. So on an English-culture machine it would show 'Today : 11/02/2009'.

If a different culture happens to be used, such as French, then I would like to use the French word for ‘Today’.

Does the .NET platform expose this word as part of the culture information so I can retrieve it automatically? I cannot find anything exposed but maybe I am not looking in the right place.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T06:23:51+00:00Added an answer on May 11, 2026 at 6:23 am

    Old.. but still useful (how old? VB6 old).

    Basically Windows keeps a localized version of ‘Today’ in Comctl32.dll. You can fish it out with a a loadstringex call:

    Private Const IDM_TODAY As Long = 4163 Private Const IDM_GOTODAY As Long = 4164  Public Function GetTodayLocalized(ByVal LocaleId As Long) As String     Static hComCtl32 As Long     Static hComCtl32Initialized As Boolean     Static hComCtl32MustBeFreed As Boolean      Dim s As String      If Not hComCtl32Initialized Then         hComCtl32 = GetModuleHandle('Comctl32.dll')         If hComCtl32 <> 0 Then             hComCtl32MustBeFreed = False             hComCtl32Initialized = True         Else             hComCtl32 = LoadLibrary('Comctl32.Dll')             If Not hComCtl32 = 0 Then                 hComCtl32MustBeFreed = True                 hComCtl32Initialized = True             End If         End If     End If      If hComCtl32Initialized = False Then         s = 'Today'     Else         s = LoadStringEx(hComCtl32, IDM_TODAY, LocaleId)         If s = '' Then             s = 'Today'         End If     End If      If hComCtl32MustBeFreed Then         FreeLibrary hComCtl32         hComCtl32MustBeFreed = False         hComCtl32Initialized = False         hComCtl32 = 0     End If      s = Replace(s, '&', '')     If Right(s, 1) = ':' Then         s = Left(s, Len(s) - 1)     End If      GetTodayLocalized = s End Function 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a vertical scrollable calendar application(listview) that is always showing 1 month at
I am writing a custom calendar, that consists of two parts, one div showing
I spent a month writing an elaborate payment system that handles both credit card
Need help in writing the query to get the last month data as well
I'm writing a program that asks the user to enter their birth date. For
i am writing a function in javascript that will return date array of all
I am writing a java program that gets the rainfall for each month. It's
I've spent the last month writing a multiplayer game. I have only been testing
I am writing a stored procedure for displaying month and year. It is working,
Writing documentation in html requires some code examples. What to do with characters that

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.