hi, i have this problem with a date. to get the current month i can use date("F"); but how can i get the month before or last month?
any ideas??
Martin
Computing help and info:
any ideas??
Martin
Computing help and info:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$current_date = getdate();
$check_month = $current_date("mon") - $amount_to_subtract;
$past_month = date("F",mktime(0,0,0,$check_month,$current_date("mday"),
$current_date("year"));