How to create date format YYYYMMDDHHMMSS

Hi Guys,

I want to save my file this format Filenanme +“YYYYMMDDHHMMSS”+“.pdf”,

But when i try this it was not working.

Thank you in advance.

Gemlan,
Thank you for response.

But it is not working. when i try this format , it is showing syntax error.Error1

Hi @vasanthbalan may can you screen cap the syntax error?
Try dis…

DateTime.Now().ToString(“yyyyMMddhhmmss”)+“.pdf”

Use this below code, @vasanthbalan
Now.ToString(“yyyyMMddHHMMss”).
Hope this may help you :slight_smile:

@vasanthbalan

Check below

image

Hope this helps

Thanks

1 Like

Its working as expected.