MUNDOSAP

Regresar   MUNDOSAP > DESARROLLO > Programación ABAP IV
Nombre de Usuario
Contraseña
Home Descargas Registrar FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos




 
Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Viejo 12/09/07, 08:12:51
falkata82 falkata82 is offline
Member
 
Fecha de Ingreso: ago 2007
Mensajes: 58
Cómo se pone formato a una fecha??

Hola!!

tengo que poner una fecha con un formato determinado, me han hablado de SET DATE MASK 'xxxxxx'. Cómo se usa?? o Cómo se pone??

Úlima edición por falkata82 fecha: 12/09/07 a las 09:39:30.
Responder Con Cita
  #2  
Viejo 12/09/07, 18:22:56
Jacampos Jacampos is offline
Member
 
Fecha de Ingreso: feb 2006
Localización: Barcelona
Mensajes: 70
Prueba esto

To define the formatting of date fields, use the SET DATE MASK control command. Executing this command causes all subsequent date fields to be printed using the specified format.

Syntax:

/: SET DATE MASK = 'date_mask'

In the date mask, you can use the following codes:

* DD: day (two digits)
* DDD: day name - abbreviated
* DDDD: day name - written out in full
* MM: month (two digits)
* MMM: month name - abbreviated
* MMMM: month name - written out in full
* YY: year (two digits)
* YYYY: year (four digits)
* LD: day (formatted as for the L option)
* LM: month (formatted as for the L option)
* LY: year (formatted as for the L option)

All other characters found in a date mask are interpreted as simple text and are copied straight into the output.

Assuming the current system date is March 1st, 1997.

/: SET DATE MASK = 'Foster City, MM/DD/YY'

&DATE& -> Foster City, 03/01/97

/: SET DATE MASK = 'MMMM DD, YYYY'

&DATE& -> March 01, 1997 The date mask may be reset to the default setting by using an empty string:

/: SET DATE MASK = ' '
__________________
Quiero aprender, ayudando a aprender.
Responder Con Cita
  #3  
Viejo 14/07/08, 09:39:11
Avatar de Jonathan Barrio Rodriguez
Jonathan Barrio Rodriguez Jonathan Barrio Rodriguez is offline
Senior Member
 
Fecha de Ingreso: oct 2007
Localización: MADRID
Mensajes: 199
hola, buenas....

Levanto este post por que va sobre la misma temática y para ver si alguí se encontró con esto...

SET DATE MASK = 'DD de MMMM de YYYY' DEBIera dar 10 de Julio de 2008,

sin embaro el mes no lo muestra..., sale 10 de de 2008,

alguien sabe como solucionar esto??

Muchas gracias..
Responder Con Cita
  #4  
Viejo 15/07/08, 15:11:07
Avatar de Jonathan Barrio Rodriguez
Jonathan Barrio Rodriguez Jonathan Barrio Rodriguez is offline
Senior Member
 
Fecha de Ingreso: oct 2007
Localización: MADRID
Mensajes: 199
Por si a alguien le sirve:

Responder Con Cita
Respuesta


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Reglas de Mensajes
no puedes crear nuevos temas
no puedes responder temas
no puedes adjuntar archivos
no puedes editar tus mensajes

El código vB está On
Las caritas están On
Código [IMG] está On
Código HTML está Off
Saltar a Foro


Husos Horarios son GMT. La hora en este momento es 11:59:10.


www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web