Avatar of mainrotor
mainrotor

asked on 

I need help formatting values in VB6

HiExperts,
I need help formatting some field values in VB6.  I need the following:

Any currency value in this format:        -#########.##
Any date value in this format:             MM/DD/YYYY
Any numeric value in this format:      ###########
Any phone value in this format:            (Exactly 10 digits for example  (123) 456-7890  would become 1234567890)
Any SSN value in this format:            (Exactly 9 digits for example 111-22-3333 would become 111223333)
Any TIME value in one of these 2 formats:      HH:MM[:SS]  for any 24 hour time for example 1345 would become 13:45:00
                                    HH:MM[:SS] AM/PM  for any 12 hour time for example 1:45 would become 01:45:00PM


Thanks in advance for all of your help,
mrotor
Visual Basic ClassicProgramming

Avatar of undefined
Last Comment
GrahamSkan

8/22/2022 - Mon