getDate( ) example
The following is an onOpen event handler for a form that makes the "Ship" button invisible on the first day of the month, when inventory is being reconciled:
function Form_onOpen()
if new Date().getdate() == 1 // Get today's day of month, if first of month
this.shipButton.visible = false // Prevent shipping
endif