Jump to content
  • 0

Change Date Format


MyMelody

Question

3 answers to this question

Recommended Posts

  • 0

Hi @MyMelody,

 

I have a code that will convert the date format to dd/mm/yyyy and will determine if the time is AM or PM.

You may try this one:

CONVERT(VARCHAR(10), [@field:TimeCreated], 103) + ' ' + LTRIM(RIGHT(CONVERT(CHAR(20), [@field:TimeCreated], 22), 11))

The result will be like this:

image.png.a841a3681d6113b33c2868d6c0b49b1e.png

 

Hope this helps.

 

-kristina

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...