I've added a label with the date in days and the month in letters but I need it to show the right language also.
I've got this label:
<Label Text="{Binding Date, StringFormat='{0:dd MMMM}'}"></Label>
I've got this in the ViewModel:
public class EventPageViewModel : INotifyPropertyChanged
{
private readonly INavigationService _navigationService;
//public DelegateCommand Date { get; set; }
public EventPageViewModel(INavigationService navigationService)
{
_navigationService = navigationService;
}
DateTime _startdate;
public DateTime Date
{
get
{
return _startdate;
}
set
{
_startdate = value;
RaisePropertyChanged("Date");
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
I have tried lots of things but how can i somehow add this:
CultureInfo MyCultureInfo = new CultureInfo("se-SE");
So that is say October in my desired language instead.
Thanks alot!!