View Full Version : problems with DayOfWeek function
mhund
August 26th, 2006, 08:39 AM
Hello,
maybe I am too stupid or I miss something.
With the LUA expression
date:parse("08.08.2006").DayOfWeek I get numbers for the weekdays from 1 (Monday) to 7 (Sunday). Right?
This worked great until the 23.08.2006. Since the 24.08.2006, the number is one day too far.
Can somebody test this to give the prove that I'am not a fool?
thanks in advance ...
Rob H
August 26th, 2006, 10:06 AM
Yep, that does indeed seem to be the case.
mhund
August 26th, 2006, 10:35 AM
Thanks for your reply. Lets wait for a comment from Ron or a fix and take the time it needs. It's not very urgent for me.
VaioUserChris
August 26th, 2006, 01:32 PM
Hi Guys,
I posted this problem (and a couple other related issues) on this thread, and provided a fix to the date.lua script on that same thread:
http://www.promixis.com/forums/showthread.php?t=13509&highlight=date
Just place that script in your Girder\luascript folder, replacing the existing date.lua file.
Using my updated script all of the dates you supply come up with the correct day of the week.
Mike, would you consider updating the date.lua script with my version to fix this for other users?
Thanks, Chris
mhund
August 26th, 2006, 01:49 PM
thanks for your hint. I didn't get this with the search function. Maybe the promixis guys will consider this in the next release. It would be worth it.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.