how to insert the date in ms access.date format like(dd/mm/yyyy).
by using this Format(#" + paydate + "#,'dd/MM/yyyy')
| PaymentDate |
|---|
| 07/10/2013 |
| 07/11/2013 |
| 07/12/2013 |
| 13/07/2013 |
| 14/07/2013 |
| 15/07/2013 |
but i need to insert all dates like dd/mm/yyyy.
Please help me.....

Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 13, 2013, 12:02 AM EDT
http://allenbrowne.com/ser-36.html
VulpesRank #55 · 29.2K reputationPosted Jul 13, 2013, 12:08 AM EDT
prathyusha173 reputationPosted Jul 13, 2013, 12:34 AM EDT
my query like this in windows application
i = ts.DataManipulate("insert into
tblFeePayment(AdmissionNumber,PaymentDate,AmountPaid,Balance,FeeDescription,FeeStatus,AcademicYearId,AdmissionFee,AnnualFee,LibraryFee,SportsFee,Others,MonthlyFee,Amountwords,TermFee)
values('" + admnumber + "',Format(#" + paydate + "#,'dd/MM/yyyy')," + amountpaid + "," + balance + ",'" + remarks + "'," + feestatus + "," + academicyearid + "," + admf + "," + annualfee + "," + libfee + "," + sportfee + "," + miscfee + "," + monfee + ",'" + amt + "'," + test1 + ")");
please help me
VulpesRank #55 · 29.2K reputationPosted Jul 13, 2013, 2:10 AM EDT
prathyusha173 reputationPosted Jul 14, 2013, 8:49 PM EDT
public int InsertStudentFee(string admnumber, string paydate, int amountpaid, int balance, string remarks, int feestatus, int academicyearid, int admf, int annualfee, int libfee, int sportfee, int miscfee, int monfee, string amt, int test1)
{
int i = 0;
Transaction ts = new Transaction();
i = ts.DataManipulate("insert into tblFeePayment(AdmissionNumber,PaymentDate,AmountPaid,Balance,FeeDescription,FeeStatus,AcademicYearId,AdmissionFee,AnnualFee,LibraryFee,SportsFee,Others,MonthlyFee,Amountwords,TermFee) values('" + admnumber + "',#" + paydate.ToString("dd/MM/yyyy") + "#," + amountpaid + "," + balance + ",'" + remarks + "'," + feestatus + "," + academicyearid + "," + admf + "," + annualfee + "," + libfee + "," + sportfee + "," + miscfee + "," + monfee + ",'" + amt + "'," + test1 + ")");
return i;
}
by using above query in windows application(forms) this eror will be displayed
Error19The best overloaded method match for 'string.ToString(System.IFormatProvider)' has some invalid argumentsC:\Users\dev02.QGNDOR\Desktop\QGS_School\BussinessLogic\BL_Student.cs563264BussinessLogic
Error20Argument '1': cannot convert from 'string' to 'System.IFormatProvider'C:\Users\dev02.QGNDOR\Desktop\QGS_School\BussinessLogic\BL_Student.cs563281BussinessLogic
please help me
it's important to me.
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 14, 2013, 9:10 PM EDT
Use like this
"#" + String.Format("{0:dd/MM/yyyy}", paymentDate) + "#"
Regards,
Iftikar
prathyusha173 reputationPosted Jul 14, 2013, 9:20 PM EDT
i = ts.DataManipulate("insert into tblFeePayment(AdmissionNumber,PaymentDate,AmountPaid,Balance,FeeDescription,FeeStatus,AcademicYearId,AdmissionFee,AnnualFee,LibraryFee,SportsFee,Others,MonthlyFee,Amountwords,TermFee) values('" + admnumber + "',#" + String.Format("{0:dd/MM/yyyy}", paydate) + "#," + amountpaid + "," + balance + ",'" + remarks + "'," + feestatus + "," + academicyearid + "," + admf + "," + annualfee + "," + libfee + "," + sportfee + "," + miscfee + "," + monfee + ",'" + amt + "'," + test1 + ")");
07/10/2013 output like this only
please help me
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 14, 2013, 9:27 PM EDT
Regards,
Iftikar
prathyusha173 reputationPosted Jul 14, 2013, 9:30 PM EDT
current date like 15/07/2013 and i'm using windows applications
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 14, 2013, 9:33 PM EDT
Regards,
Iftikar
VulpesRank #55 · 29.2K reputationPosted Jul 15, 2013, 1:01 AM EDT