Date to Date Conversions

@Vajrang

Hi everyone,
I need to change the date format.
if the date is like this 1-8-2021 i want to change like this 01-08-2021.
any help??

Hi @SudhaT
Try this Expression
CDate(“1-8-2021”).ToString(“MM-dd-yyyy”)

image

Regards
Gokul

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.