How do i convert dd/mm/yyyyy to dd-mm-yyyy using pascal programming?
-
using pascal programming language convert dd/mm/yyyy to dd-mm-yyyy the program should end when the data entered is 01/01/1000 i need your assistance on this please.
-
Answer:
If you mean Pascal for Windows (Delphi), then you can use the in-built functions to do this. var MyDateTimeVar: TDateTime; s: string; begin s := FormatDateTime('dd-mm-yyyy',MyDateTimeVa… ... if you mean Pascal for console (DOS), then it doesn't handle dates directly, and you should store them as strings. In this case you would do a character replace operation on the date string to replace the '/' for '-' as described in the second answer to your first question. I hope this is helpful... but feel free to mail me ([email protected]) should you have further questions. Mystic
emmanuel at Yahoo! Answers Visit the source
Related Q & A:
- How do I convert a PDF file to PDF/A in Delphi?Best solution by softwarerecs.stackexchange.com
- How do I convert a bitmap to vector?Best solution by Super User
- How can I convert UTF-16 file to UTF-8?Best solution by Stack Overflow
- How can I convert Matlab code to c#?Best solution by Stack Overflow
- How do I convert SWF to FLA?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.