This topic is locked

How To Determine Day of Week From Input Date

2/4/2007 12:46:47 AM
ASPRunnerPro General questions
BeachyLife author

How can I display the abbreviated day of the week for an inputted date? For example, when the user enters 02/04/2007 in the StartDt field, I would like the system to automatically determine that the date is SUN and store that in the StartDay field. Thanks for your help

Sergey Kornilov admin 2/4/2007

You can use something like this in BeforeAdd/BeforeEdit events:

WeekdayName(Weekday(dict("StartDt")))
BeachyLife author 2/4/2007

You can use something like this in BeforeAdd/BeforeEdit events:


WeekdayName(Weekday(dict("StartDt")))


How do I get that value into the other field called Start_Day? Is it:

dict(Start_day) = WeekdayName(Weekday(dict("StartDt")))[/code]
Thanks for your help

Sergey Kornilov admin 2/5/2007

dict("Start_day") = WeekdayName(Weekday(dict("StartDt")))