fORMATO DE FECHA - FORMAT TO DATE - Forum

Forum Navigation
You need to log in to create posts and topics.

fORMATO DE FECHA - FORMAT TO DATE

@asleycruz, @gaev, @luishp

Español

Actualmente la variable de fecha corta me muestra este formato mes/dia/año

Como puedo hacer para establecer que muestre este formato no el anterior  dia/mes / año?

 

English

Currently the short date variable shows me this month/day format
How can I establish to show this format day / month / year?
If [NAB.DayNum] < 10
  SetVar [theDay] "0[NAB.DayNum]"
Else
  SetVar [theDay] [NAB.DayNum]
EndIf
If [NAB.MonthNum] < 10
  SetVar [theMonth] "0[NAB.MonthNum]"
Else
  SetVar [theMonth] [NAB.MonthNum]
EndIf
SetVar "[fecha]" "[theDay]/[theMonth]/[NAB.Year]"

@joferar333 a ver que te parece así

roccocogliano has reacted to this post.
roccocogliano

@luishp

Genial! he tomado tu codigo y lo arme en una subrutina que llame testFecha

Intento agregarla como evento a toda la app

la llamo simplemente asi

testFecha, pero me pide un parametro que no me doy cuenta que poner....

aun me hago lio con los comandos de neobook y visualneo web  la estoy invocando bien? a que parametro se refiere para completar la llamada??

@joferar333 no te entiendo pero ponlo en Project > Events > Start-up no en una subrutina y utiliza la variable [fecha] donde quieras.
Saludos.