﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
312	An improvement for TextToDate function	imendez	Víctor de Buen Remiro	"""TextToDate"" function converts a text with the appropiate format into a Date.
It's the same that Eval(Text):

Date d1 = TextToDate(""y2005m09d30"");
Date d2 = Eval(""y2005m09d30"");
// d1 = d2

I think ""TextToDate"" could have just the opposite working of ""FormatDate""
function, with a second (and optional, of course) argument specifying an
appropriate format:

Date d1 = TextToDate(""y2005m09d30"");
Text t1  = FormatDate(y2005m09d30,   ""%cy%Ym%md%d"");
Date d2 = TextToDate(""y2005m09d30"", ""%cy%Ym%md%d"");
Text t2  = FormatDate(y2005m09d30,   ""%cy%Ym%md%d"");
Date d3 = TextToDate(""20050930"",       ""%c%Y%m%d"");
Text t3  = FormatDate(y2005m09d30,   ""%c%Y%m%d"");
Date d4 = TextToDate(""09302005"",       ""%c%m%d%Y"");
Text t4  = FormatDate(y2005m09d30,   ""%c%m%d%Y"");

where d1 = d2 = d3 = d4.

What do you think?

Regards"	enhancement	closed	lowest		TimeSetAlgebra	head	minor	fixed		
