문제

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.

도움이 되었습니까?

해결책

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?

다른 팁

You could use Java

formatter = CreateObject("java", "java.text.SimpleDateFormat").init('MMDDYYYY)';
formattedDate = formatter.parse(yourDate);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top