You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dim Date1 As Date = #2019-10-06#
Dim Date2 As Date = #2019-12-31#
Dim Diff = Date2.Subtract(Date1)
Dim Str = Diff.Humanize(precision:=3, maxUnit:=Humanizer.Localisation.TimeUnit.Month, minUnit:=Humanizer.Localisation.TimeUnit.Day, culture:=New CultureInfo("en-US"))
Console.WriteLine(Str)
Console.ReadLine()
This outputs
2 months, 25 days
but I would expect something like
2 month, 3 weeks, 4 days
Am I missing something here?
The text was updated successfully, but these errors were encountered:
Please have a look at the following example
This outputs
but I would expect something like
Am I missing something here?
The text was updated successfully, but these errors were encountered: