V
Vinnie
I'm using this code to get the time and the current date, but i get
and error:
System.Globalization.CultureInfo culture = new
System.Globalization.CultureInfo();
System.Globalization.CultureInfo("pl-PL");
LabelData.Text = String.Format(culture.DateTimeFormat,"Today is
{0:dd}, {0:MMMM} {0:yyyy}, {0:HH} {0:mm} {0:ss}", DateTime.Now);
The first error is:
- No overload for method 'CultureInfo' takes '0' arguments;
The second one is:
- 'System.Globalization.CultureInfo' is a 'type', which is not valid
in the given context
what i should change?
thanks,
Vinnie
and error:
System.Globalization.CultureInfo culture = new
System.Globalization.CultureInfo();
System.Globalization.CultureInfo("pl-PL");
LabelData.Text = String.Format(culture.DateTimeFormat,"Today is
{0:dd}, {0:MMMM} {0:yyyy}, {0:HH} {0:mm} {0:ss}", DateTime.Now);
The first error is:
- No overload for method 'CultureInfo' takes '0' arguments;
The second one is:
- 'System.Globalization.CultureInfo' is a 'type', which is not valid
in the given context
what i should change?
thanks,
Vinnie