Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i add a persian or other language Datatimepicker in umbraco?

i need to add a persian (shamsi) date time picker in my website.i know about persian data time picker in Asp.net or C# but i'm using umbraco and need to add persiandatetimepicker in umbraco that can use and change persiandatetimepickers code in my code. how do i do it?

i found this link: http://our.umbraco.org/forum/developers/api-questions/19718-Using-Umbraco-Date-Time-Picker-in-ASCX-file

but not useful.

like image 331
amin k Avatar asked Nov 03 '22 11:11

amin k


1 Answers

You can create new datatypes in Umbraco to both store and render dates in your own style and preference. The process involves creating a couple of classes, one of which implements an interface called IDataType. Tim Geyssens, staff at Umbraco HQ, has a great blogpost on the basics here.

like image 81
Jamie Howarth Avatar answered Nov 09 '22 08:11

Jamie Howarth