<script type="text/javascript">

				<cfset qDaten=QueryNew("datum","date")>

				<cfset strumonths={}>
				<cfloop from="1" to="12" index="m">
								<cfset strumonths[MonthAsString(m)]=DateFormat(CreateDate(2011,
																								m, 1), 'mmm')>
								<cfset QueryAddRow(qDaten, 1)>
								<cfset QuerySetCell(qDaten, "datum", CreateDate(2011, m, 1), m)>

				</cfloop>


<!---
        <cfdump var="#qDaten#">
        <cfdump var="#strumonths#">
 --->

/*
		 var strumonths={Januar:'Jan', Februar:'Feb', März:'Mar', April:'Apr', Mai:
										'Mai', Juni:'Jun'
								, Juli:'Jul', August:'Aug', September:'Sep', Oktober:'Okt',
								November:'Nov', Dezember:'Dez'};
*/
				var strumonths=<cfoutput>#SerializeJson(strumonths)#</cfoutput>;
				var qdaten=<cfoutput>#SerializeJson(qDaten, true)#</cfoutput>;

				arrmonths = [];
				for(var lsmonth in strumonths) {
								arrmonths.push(lsmonth);
				}

				var datmonthpatt=new RegExp( '^\(' + arrmonths.join('|') + '),' );

				for(var cnt=0; cnt<qdaten.DATA.DATUM.length; cnt++) {

								var arrerg=qdaten.DATA.DATUM[cnt].match(datmonthpatt);
								if(arrerg.length == 2) {
												var patt=new RegExp( '^' + arrerg[1] );
												a=qdaten.DATA.DATUM[cnt].replace(patt, strumonths[arrerg[
													1]]);
												var dat=new Date(a);
												alert(dat.getFullYear());
								}

				}

</script>



Coldfusion
->SerializeJSON

GCC
->Cross-Compiling

MySql
->Prep. Stmts

SQLite3
->Mem-Structure
->Prep. Stmts
->ToUTF8-Func
->ToWin1252-Func

UTF-8
->UTF-8 To UCS2

VB
->MD5-Class

VC++
->BZip2
->ATL


HOME