本文整理汇总了PHP中AppHelper::dateToString方法的典型用法代码示例。如果您正苦于以下问题:PHP AppHelper::dateToString方法的具体用法?PHP AppHelper::dateToString怎么用?PHP AppHelper::dateToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppHelper
的用法示例。
在下文中一共展示了AppHelper::dateToString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handleSearch
public function handleSearch()
{
$getDate = Input::get('searchVoter');
//echo $getDate;
$getDate = AppHelper::dateToString($getDate);
$results = DB::select('select membership_id FROM "valids" WHERE "valid"=1 and "upToDate" between 0 and ' . $getDate);
return $results;
}
示例2: currentDate
public static function currentDate()
{
$currentDate = date('d-m-Y');
$currentDate = AppHelper::dateToString($currentDate);
return $currentDate;
}
示例3: handleBankStatement
public function handleBankStatement()
{
$account = Account::findOrFail(Input::get('account'));
if (Input::get('bank_statement') == 1) {
$account->bank_statement = Input::get('bank_statement');
// store bank statement;
$account->save();
//update information to Valid table
$member_id = $account->membership_id;
//submit money to date
$toDate = $account->to;
//return $date;
//converting date to srting
$date = AppHelper::dateToString($toDate);
//validateion upto date
$upToDate = AppHelper::addThreeYear($toDate);
//converting date to srting
$upToDate = AppHelper::dateToString($upToDate);
$currentDate = AppHelper::currentDate();
//update valid database
DB::update('update valids set valid=1,toDate =' . $date . ',upToDate=' . $upToDate . ' where membership_id=' . $member_id);
if ($currentDate < $upToDate) {
DB::update('update members set status=1 where membership_id=' . $member_id);
}
return Redirect::action('AdminAccountController@index')->with('flash_edit_success', 'Congratulation,You have submitted a bank statement');
} else {
return Redirect::action('AdminAccountController@index')->with('flash_dlt_success', 'Sorry, You do not submitted any bank statement.');
}
}