AnsweredAssumed Answered

VBScript label expression for dates.

Question asked by huffmanp on Jun 12, 2012
Latest reply on Jun 13, 2012 by huffmanp
I thought I could reformat a date variable to drop the year for a map label but all I can get from the label expression advanced box is "The expression contains an error. Modify the expression and try again."  Tried

FormatDateTime([StartDate], 1)


Function ShortDate ( [StartDate] )
  ShortDate = FormatDateTime([StartDate],1)
End Function

where StartDate is a date item in my table formated mm/dd/yyyy For the second FormatDateTime argument, I've tired 1 and 0.