Documentation getUTCDay() getUTCDate() mix-up Servoy 6.1.3

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Documentation getUTCDay() getUTCDate() mix-up Servoy 6.1.3

Postby swingman » Mon Jan 14, 2013 12:21 pm

Code: Select all

function test(event) {
   var d = new Date();
   application.output(d.getUTCDay());
        //tooltip says
        //getUTCDay(): Number
        //Returns the day of the week from a date according to universal time (from 1-31)
   application.output(d.getUTCDate());
        //tooltip says
        //getUTCDate(): Number
        //Returns the day of the month from a date according to universal time (from 0-6).
}



getUTCDay() gets the day of week (0-6)
getUTCDate() gets the day of month (1-31)

Please fix, it fooled me and caused a bug in my automatic scripts.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Documentation getUTCDay() getUTCDate() mix-up Servoy 6.1

Postby jcompagner » Tue Jan 15, 2013 12:40 pm

i will switch the numbers (1-31 <-> 0-6)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Documentation getUTCDay() getUTCDate() mix-up Servoy 6.1

Postby swingman » Wed Jan 16, 2013 6:59 pm

:-)
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: Google [Bot] and 8 guests