VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

ChecknFormatDateString

Rahul Singh  (1 Submission)   Math/Dates   VB Script   Intermediate   Wed 3rd February 2021

This function is very usefull when we want to validate a date, entered by the user manually in a textfield, and format the Date in some predefined format.This function does the same thing but with greater flexibility .Means it allows user to enter date in a bit more flexible way (where sometimes date()function wont allow u)(allows formats like 2.3.4, 12|5|2045, 12-5-4, 2/12/04, 2\2\121 whichever way user likes) and then it automatically completes and validates it and then reformat the date according to predefined format which will be passed as an argument to this function.

Inputs
Date String

Returns
validated and Formatted Date String

Side Effects
Nil

Rate ChecknFormatDateString (4(4 Vote))

Download ChecknFormatDateString

ChecknFormatDateString Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters