Format Dates

Learn how to format dates using Corvid (a.k.a. Wix Code). 

This example shows you how to format a date selected by user input in various ways depending on your preference. Try the example below.

#iptDate
dd/mm/yyyy
#txtDate1
#txtDate2
dd month yyyy
#txtDate3
dd mmm yyyy
#txtDate4
#txtDate5
dayname dd mmm yyyy
dayname
Please wait ...
Disclaimer: To the best of our knowledge, this code works for its stipulated purpose. If you find an error in our code, or know of a better way to achieve the same result - please contact us! All our code snippets come with full support to help you implement them on your own website - simply contact us for help.
  • Facebook Social Icon
© CorvidCodeBank