Logging Sexual Activity

What counts as having sex one day when logging sexual activity? If I have sex at 2am, does that count day of or as the night before?