Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Day changes to zero when subtracting from first day of each month
Post Flair (click to view more posts with a particular flair)
Post Body

I have to pull date and time data that is given in the following format.

2023-04-01 04:18:32

If the time is before 6:00:00 AM, the data and date need to be converted to the day before. Currently this formula works, except when the day is the first of the month.

=IF(HOUR(D2)<6,MONTH(D2)&"/"&DAY(D2)-1,MONTH(D2)&"/"&DAY(D2))

When the day is the first of the month before 6am, it returns month/0 instead of last month/last day. This is a problem for future functions because I need a matching day to run reports and record the data based on the day.

I currently have to manually change those dates between 12am and 6am, to the previous day. This seems inefficient and like something that I might be able to work around with a different function(s)

Author
Account Strength
80%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
58
Link Karma
60
Comment Karma
n/a
Profile updated: 2 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago