[ASK] How to get date yesterday if today is date 1
#1

Hi i'm confused how to get date 1 - 6 days before, if now is sunday but i will get data from mysql database, how to get date for 1-6 days before.

And also, 1 month not always 31 days, if sunday is date 1. and month before is 31/30/29/28 how to get date before. i'm confused because i will trying to make profit system for business. in my opinion i will make a table with fill (businessid (int), value(int), date(varchar)), if player buy item from business it work like /buy > Player buying item > Insert data on table within businessid, value, date (now). but i confused how to get data from mysql database?, and how to get date before sunday.

example image from jogjagamers rp
Image

Thanks before.
Reply


Messages In This Thread
[ASK] How to get date yesterday if today is date 1 - by Jonggol - 10.11.2016, 15:25
Re: [ASK] How to get date yesterday if today is date 1 - by SickAttack - 10.11.2016, 15:39
Re: [ASK] How to get date yesterday if today is date 1 - by Vince - 10.11.2016, 16:21
Re: [ASK] How to get date yesterday if today is date 1 - by Jonggol - 11.11.2016, 03:31

Forum Jump:


Users browsing this thread: 1 Guest(s)