« [Tip] creating a new related record without a method | Main | [Tip] A scriptable export »

November 22, 2004

[Tip] Calculate a week number

by Harjo Kompagnie
www.directict.nl

In Servoy you don't have a function like getWeek() to calculate a weeknumber or something like that.

The following example shows you how to retrieve the weeknumber in a calculation:

//referencedate is the column!
return parseInt(utils.dateFormat(referencedate, 'w'));

Hope it helps,

Harjo

| Posted by IT2Be on November 22, 2004 at 09:30 AM in Tips | Permalink

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341c8d8153ef00d8350b207c53ef

Listed below are links to weblogs that reference [Tip] Calculate a week number:

Comments

Post a comment