This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Usage example: | |
-- array.contains(1) | |
Description: Checks if array contains value 1 | |
Demo: http://jsfiddle.net/Yushell/GTSXh/ | |
*/ | |
Array.prototype.contains = function(obj) { | |
var i = this.length; | |
while (i--) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CultureInfo ci = new CultureInfo("es-ES"); | |
// 29 | |
string vDia = Convert.ToString(DateTime.Now.Day); | |
// AGO | |
string vMes = Convert.ToString(DateTime.Now.ToString("MMMM", ci).ToUpper().Substring(0, 3)); | |
// 2012 | |
string vAnio = Convert.ToString(DateTime.Now.Year); | |
// 08 | |
string vMesNumero = Convert.ToString(DateTime.Now.ToString("MM")); | |