• VB Script 5.5 (VBS 5.5)

    Author
    Topic
    #438648

    Hello,
    I need a function that will return a Julian date WITH leading zeros. Does anyone have any suggestions?

    Thanks,
    Mark

    Viewing 2 reply threads
    Author
    Replies
    • #1046446

      What do you want to use as input to the function?

    • #1046448

      Additional question: which Julian Date do you want to use? The ‘official’ definition is the number of days since January 1, 4713 BC at noon. But some people use the term for the day of the year (e.g. February 10 = the 41st day of the year)

    • #1046533

      Numeric values generally do not have leading zeros. One way to construct a string which contains a numeric value padded with leading zeros is along the following lines:

      strPadded = Right("0000" & Cstr(lngNumber), 4) ' returns 0000 to 9999 as a string

    Viewing 2 reply threads
    Reply To: VB Script 5.5 (VBS 5.5)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: