How can I get the last day of any month/year?

December 29, 2010 at 08:33:34
Specs: Windows XP
Simply trying to set a variable that is the last day of the month (and it's day) on both hpux and linux platforms. so, for DEC 2010 the last day = 31 and it is a FRIDAY (I need both values). Any suggestions?

See More: How can I get the last day of any month/year?

Report •

#1
December 29, 2010 at 09:19:37

Report •

#2
December 30, 2010 at 17:36:34
Last day of the current month:

#!/bin/ksh

typeset -R2 LastDay=$(cal);print $LastDay



Report •
Related Solutions


Ask Question