In C#, I can define a computed property as such:
public class MyViewModel
{
public DateTime StartDate { get; set; }
public string StartDateFormatted => StartDate.ToString("yyyy.MM.dd h:mm tt");
}
How can I do this in F#?
[<DataContract>]
[<CLIMutable>]
type MyViewModel = {
[<DataMember>] StartDate : DateTime
[<DataMember>] StartDateFormatted : string // How can I make this a computed property?
}