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