Is_Date() function for strings in mutiple possible formats

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

PeteWG
Posts: 176
Joined: Sun Mar 21, 2010 5:45 pm

Re: Is_Date() function for strings in mutiple possible formats

Post by PeteWG »

edk wrote: Fri Jul 09, 2021 10:37 am I used to need something similar that you ask. Maybe it will be helpful.
Interesting and helpful function, indeed!
Could it be enhanced to handle timestamp string values, perhaps?

for example:

Code: Select all

 msgdebug( hb_TSToStr( hb_DToT( date() ) ), IsStringValidDate( hb_TSToStr( hb_DToT( date() ) ) ) )
regards,
Pete
Post Reply