Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a date like this 2-jan-11
i want to convert it into 02/01/11 or 02/01/2011
Plz help me on this.
Date(Date#('2-jan-11', 'DD-MMM-YY'), 'DD/MM/YY')
Date(Date#('2-jan-11', 'DD-MMM-YY'), 'DD/MM/YY')
Hi
Try below
If it is valid date then
1)for 02/01/11
Date('2-jan-11','DD/MM/YY')
or
2) for 02/01/2011
Date('2-jan-11', 'DD/MM/YYYY')
If it is not valid date then
1)for 02/01/11
Date(Date#('2-jan-11', 'DD-MMM-YY'), 'DD/MM/YY')
or
2) for 02/01/2011
Date(Date#('2-jan-11', 'DD-MMM-YY'), 'DD/MM/YYYY')
Regards
Tresesco answer is right.