News blog

What is Servoy?

Getting Started

Comparison Servoy/VFP




Code Reference


VFP2Servoy Toolkit



Contact / feedback















DOW() - date.getDay()

Returns a numeric day-of-the-week value from a Date or DateTime expression.


VFP code example

dayOfWeek = DOW(DATE())     && uses regional settings
dayOfWeek = DOW(DATE(),1)   && 1=Sunday, 2=Monday etc.
dayOfWeek = DOW(DATE(),2)   && 1=Monday, 2=Tuesday etc.


Servoy code example

var d = new Date();
var dayOfWeek = d.getDay(); // 0=Sunday, 1=Monday etc.

Note: DOW() is a function of the VFP2Servoy Toolkit



It's almost the same but watch out for those zero-based values (Sunday=0 instead of Sunday=1).



External resources:


vfp plugin


ServoyWorld 2012 pics


Official Servoy website


Ken Levy on Servoy


Servoy info


Servoy Forum


Servoy Documentation © 2010-2012 • All rights reserved • Contact: