Frage

I'm trying to enter dates without slashes, for example 09092013. Is there a quick and easy way to convert those strings into date objects? ParseDateTime() didn't like it.

War es hilfreich?

Lösung

You mean other than using left() to get the first two, mid() the second two, and right() the last four, then using those as inputs into createDate()? how much quicker and easier are you wanting to get?

Andere Tipps

You could use Java

formatter = CreateObject("java", "java.text.SimpleDateFormat").init('MMDDYYYY)';
formattedDate = formatter.parse(yourDate);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top