Fecha UTC (Que recibimos, por ejemplo, desde base de datos) var receivedDate = "2016-09-25T10:00:00"; Convertir a fecha Local receivedDate = new Date(receivedDate); //receivedDate: "Thu Sep 25 2016 12:00:00 GMT+0200 (Central Europe Daylight Time)" Al crear una fecha con el string UTC que recibimos automáticamente la creará con nuestro time zone local. En este ejemplo, la fecha UTC …
Etiqueta: time
Crear un contador de tiempo en SpriteKit con Swift
Con el siguiente código crearemos facilmente un contador de tiempo en milisegundos que nos servirá para poder guardar el tiempo que ha durado la partida del jugador. En primer lugar, debemos tener una variable para almacenar los milisegundos, una Label donde mostrarlo durante la partida y un booleano para controlar cuando se acaba el juego: …
Sigue leyendo Crear un contador de tiempo en SpriteKit con Swift
SharePoint Document Library Definition XML Guide (Schema.xml)
Versioning Settings Create a version each time you edit a file in this document library? <List [...] VersioningEnabled="TRUE" EnableMinorVersions="FALSE" >[...]</List> Advanced Settings Allow management of content types? <List [...] EnableContentTypes="TRUE" >[...]</List> Default open behavior for browser-enabled documents <List [...] DefaultItemOpen="PreferClient" >[...]</List> <List [...] DefaultItemOpen="Browser" >[...]</List> Dialogs (Launch forms in a dialog) <List [...] NavigateForFormsPages="FALSE" >[...]</List> Validation Settings Set …
Sigue leyendo SharePoint Document Library Definition XML Guide (Schema.xml)
SharePoint Drag & Drop: Limite de items para subir
SharePoint nos permite subir varios items al mismo tiempo usando Drag&Drop en sus librerías, basta con arrastrar nuestros ficheros del ordenador a la zona central de la lista.Esta acción tiene una limitación: Solo se pueden arrastrar al mismo tiempo 100 ficheros. Si pasamos de esa cifra al arrastrar nos saltará una ventana emergente indicándonos que …
Sigue leyendo SharePoint Drag & Drop: Limite de items para subir
Add DIV dynamically with JQuery
You can add new div inside your web page by jquery always you want. You've to add the following code in your javascript function: $("#myExistentDiv").append("<div id='MyNewDiv'>This is my dynamic DIV</div>"); In this case, you're adding the div "MyNewDiv" inside your div with ID "myExistentDiv", just at the end of it. You can read more in …