Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoW returns 0 when called over empty date #777

Merged
merged 2 commits into from
Feb 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2707,6 +2707,8 @@ public string TToC(DateTime dt, int lenDate, int lenTime, int ampmFmt, int dateF

static public byte Dow(DateTime dt)
{
if (dt == nullDate)
return 0;
return (byte)(dt.DayOfWeek + 1);
}
static public string CDow(DateTime dt, string lang)
Expand Down