mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
clean
This commit is contained in:
parent
0a14f63272
commit
14afd77da4
1 changed files with 1 additions and 12 deletions
|
@ -348,18 +348,7 @@ String^ DateCalculatorViewModel::GetDateDiffString() const
|
||||||
|
|
||||||
String^ DateCalculatorViewModel::GetDateDiffStringInDays() const
|
String^ DateCalculatorViewModel::GetDateDiffStringInDays() const
|
||||||
{
|
{
|
||||||
wstring result;
|
wstring result = GetLocalizedNumberString(m_dateDiffResultInDays.day)->Data();
|
||||||
|
|
||||||
if (m_toDate.UniversalTime < m_fromDate.UniversalTime)
|
|
||||||
{
|
|
||||||
result = L"- "; //
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
result = L"";
|
|
||||||
}
|
|
||||||
|
|
||||||
result += GetLocalizedNumberString(m_dateDiffResultInDays.day)->Data();
|
|
||||||
result += L" ";
|
result += L" ";
|
||||||
|
|
||||||
// Display the result as '1 day' or 'N days'
|
// Display the result as '1 day' or 'N days'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue