PDA

View Full Version : Format date with specified culture



jorgenho
08-28-2009, 02:04 AM
Is there any way to format a date with a specified culture?

In vb.net it's easy:

Dim tehDate As DateTime = DateTime.Now
Dim formatLang As New System.Globalization.CultureInfo(culture.Name)

tehDate.ToString(dL(i), formatLang)


I'm thinking it might be possible to add a reference to the VBA project to get access to Culture Info, but I can't figure out which reference that would be :P