文字列クラス


  Dayofweek



  
// *********************************************************
// 文字列日付から 曜日文字列に変換する
// 戻り値 : true 成功, false 失敗
// *********************************************************
BOOL LboxString::Dayofweek( void )
{
	BOOL bRet;
	SYSTEMTIME st;

	bRet = this->ToSystemTime( &st );
	if ( !bRet ) {
		return false;
	}

	switch( st.wDayOfWeek ) {
		case 0:
			this->operator = ("日");
			break;
		case 1:
			this->operator = ("月");
			break;
		case 2:
			this->operator = ("火");
			break;
		case 3:
			this->operator = ("水");
			break;
		case 4:
			this->operator = ("木");
			break;
		case 5:
			this->operator = ("金");
			break;
		case 6:
			this->operator = ("土");
			break;
	}

	return true;

}
  










  infoboard   管理者用   
このエントリーをはてなブックマークに追加





フリーフォントWEBサービス
SQLの窓WEBサービス

SQLの窓フリーソフト

素材

一般WEBツールリンク

SQLの窓

フリーソフト

JSライブラリ