def toString(self):
     s = Date.toString(self)
     return 'SubDate -> Date'
Example #2
0
 def toString(self): 
     s = Date.toString(self)
     return 'SubDate -> Date'
# AUTOSCRIPT NAME: CG_SETLABID
# CREATEDDATE: 2014-12-18 09:19:13
# CREATEDBY: UVX3
# CHANGEDATE: 2014-12-20 03:04:21
# CHANGEBY: U047
# SCRIPTLANGUAGE: jython
# STATUS: Draft

from psdi.mbo import MboConstants 
from java.util import Date
from java.lang import String

if interactive:
  sysdate = Date()
  tempdate=sysdate.toString()
  tempyear=tempdate[-2:]
  tempmonth=tempdate[4:-21]
  if tempmonth=="Jan":
    tempmonth="01"
  elif tempmonth== "Feb":
    tempmonth="02"
  elif tempmonth== "Mar":
    tempmonth="03"
  elif tempmonth== "Apr":
    tempmonth="04"
  elif tempmonth== "May":
    tempmonth="05"
  elif tempmonth== "Jun":
    tempmonth="06"
  elif tempmonth== "Jul":
    tempmonth="07"