Forum Moderators: open
I'm using ASP with integer datestamps constructed in the format YYYYMMDD for use with a database alongside dates in the proper Date format. However, converting between the two is proving awkward.
If the day or month number is a single digit, then I obviously need to pad it out to double figures with an extra zero for use in the datestamp. But ASP's formatnumber() function doesn't support this, and short of converting to a string and concatenating an extra zero I'm not sure how to proceed.
Anyone have any ideas or experience with this problem?
Cheers,
mcfly
Hope this helps