A better CDate for VB6

后端 未结 8 729
悲哀的现实
悲哀的现实 2020-12-21 05:43

We have a a VB6 app (in a COM component) which uses CDate() to take a string and cast it to a Date, for storing in a database.

Depending on if we want the applicatio

8条回答
  •  不知归路
    2020-12-21 06:20

    You mention in the comments to one of the other answers that you are taking input from the web.

    In that case you can control the date format that is being submitted by restricting user input to

    提交评论

提交回复
热议问题