AppSupport.DateService.GetShortDateInfoString C# (CSharp) Method

GetShortDateInfoString() public method

public GetShortDateInfoString ( ) : string
return string
        public string GetShortDateInfoString() => $"Today's date is {DateTime.Today:d}";
    }

Usage Example

 private void OnGetDate(object sender, RoutedEventArgs e)
 {
     var dateService = new DateService();
     text1.Text = dateService.GetLongDateInfoString();
     text2.Text = dateService.GetShortDateInfoString();
 }