Al tratar de cargar la sección de información adicional, se muestra este mensaje de error que menciona que el formato de fecha está incorrecto

System.FormatException: The string 'Sep 26 2015 6:14:00' is not a valid AllXsd value. at System.Xml.XmlConvert.ToDateTime(String s, XmlDateTimeSerializationMode dateTimeOption)

asked 26 Sep '15, 16:16

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%


Los campos de fecha en el property bag (al igual que cualquier otro campo) se guardan como texto. Si los campos fechas se actualizan a través de un procedimiento almacenado, las fechas tienen que guardarse en formato ISO8601 (código 126)

Ejemplo:

declare @fecha varchar(30)

select @fecha = convert(varchar,getdate(),126)

update exp.emp_empleos
set emp_property_bag_data = gen.set_pb_field_data(emp_property_bag_data,'Empleos','EMP_FECHA_CALC_VACACION', @fecha)
where emp_codigo = 10070

Finalmente al consultar el campo property bag tiene que verse así

<EMP_FECHA_CALC_VACACION>2015-09-26T18:30:06.913</EMP_FECHA_CALC_VACACION>

link

answered 26 Sep '15, 16:25

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%

edited 26 Sep '15, 16:31

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×15
×3

Asked: 26 Sep '15, 16:16

Seen: 1,855 times

Last updated: 26 Sep '15, 16:31

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática