Brian Dunning's FileMaker Custom Functions

fechaDesdeTexto ( texto )

returns a date as text from a text entered

  Average rating: 4.2 (31 votes) Log in to vote

Emilio Luengo   Emilio Luengo
Emilio Luengo
http://www.briandunning.com

Share on Facebook Share on Twitter

  Sample input:
fechaDesdeTexto("2482012")
  Sample output:
24/08/2012

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

/*
sorry... in spanish&partly english !!!
Funcion personalizada / Custom function: [fechaDesdeTexto(texto)]
Autor / Author:
Emilio Luengo
Llamada / Call:
fechaDesdeTexto( texto )
Parametros / Parameters:
texto - literal o campo de texto / literal or text field
[acepta formatos A, AA, AAA, AAAA, MAAAA, MMAAAA, DMMAAAA, DDMMAAAA]
Dato de retorno / Data returned:
texto / text
[devuelve DD/MM/AAAA, ajustando inteligentemente, si puede, los rangos de fechas]

Descripcion / Description:
toma un dato de texto, lo libera de otros caracteres no numericos, y trata de encontrar la fecha mas apropiada a los datos insertos, devolviendola como DD/MM/AA
en el caso del sigle considera cambio de definicion de siglo desde 31->2031, 30->1930

diciembre 2011
*/

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: