Android PesianDt library its for conversion EnglishDate to Persian (Jalali/Shamsi).
in this small library you can easily work with EnglishDate and Display for users more Readable dates .
You can Done This Follow Option With PerisanDT :
- you can get Time in Ago format like this a year ago
- You Can You Get name Day of week any Date .
- You can get Date With MonthName Like This 1394 bahman 1.
- Yout can get dates compelete in digit format like this 1394/11/1.
- get day of week name
CurrentDate.getDay(date)
- get date compelete in digit format
GenerateDates.getyourDate(date)
- get Month With Letters and digit format Woth Example. :
CurrentDate currentDate = new CurrentDate();
TextElemet.setText(
currentDate.getdateWithMonthLetters(
GenerateDates.getyourDate(date)
)
);
- get current Date :
CurrentDate currentDate = new CurrentDate();
TextElemet.setText(
currentDate.getdateWithMonthLetters(
GenerateDates.getCurrentDate()
)
);
###License
Copyright (C) 2016 AbbasHosseini
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.