| |

VerySource

 Forgot password?
 Register
Search
View: 563|Reply: 3

An asp.net date issue ??

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-29 09:40:02
| Show all posts |Read mode
Excuse me, I want to subtract the values ​​of two date fields in the database, and then display the result of the subtraction in the DataGrid in seconds? ?
What should I do? ? ?
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-3-1 15:30:01
| Show all posts
select DateDiff (ss, d1, d2) from table.
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-3-1 17:30:01
| Show all posts
Note that these two times should not be too long apart, too long will cause the derivative integer to overflow.
Reply

Use magic Report

0

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-3-1 19:45:01
| Show all posts
Fast back
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list