VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



ChecknFormatDateString

by Rahul Singh (1 Submission)
Category: Math/Dates
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

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
Code Returns
validated and Formatted Date String
Side Effects
Nil

Rate ChecknFormatDateString

Download ChecknFormatDateString

Download ChecknFormatDateString (3 KB)

ChecknFormatDateString Comments

No comments have been posted about ChecknFormatDateString. Why not be the first to post a comment about ChecknFormatDateString.

Post your comment

Subject:
Message:
0/1000 characters