2
votos
Aceptado
como agregar un separador en un campo varchar sql server?
La función STUFF() puede ser útil en este caso
select FECHA
, stuff(stuff(FECHA, 5, 0, '/'), 3, 0, '/') as nuevaFECHA
from Tabla
where FECHA not like '%/%'
1
voto
como agregar un separador en un campo varchar sql server?
Puedes usar SUBSTRING y vas concatenando las partes hasta forma el formato requerido
SELECT SUBSTRING(fecha, 1, 2) + '/' + SUBSTRING(fecha, 3, 2) + '/' + SUBSTRING(fecha, 5, 4) AS fechaConFormato from ...
1
voto
Aceptado
Obtener la hora de un pais especifico en javascript
Usa esto
let date = new Date();
let options = {timeZone: 'Europe/Zurich'};
let time = date.toLocaleString('en-US', options);
console.log('La hora en Zurich es: '+time);
Recomendable leer: ...
Only top scored, non community-wiki answers of a minimum length are eligible
Etiquetas relacionadas
date × 1045php × 227
javascript × 173
java × 157
datetime × 125
mysql × 119
sql × 113
python × 96
html × 60
android × 49
sql-server × 34
formato × 34
c# × 32
r × 31
laravel × 26
pandas × 26
jquery × 25
python-3.x × 25
base-de-datos × 25
string × 24
timestamp × 24
oracle × 20
angular × 19
html5 × 17
datepicker × 16