Guest User

Untitled

a guest
Jan 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. FunctionName(10.02.2011) Result should be 31.01.2011
  2.  
  3. select <date> - datepart('day', <date>) - 1
  4.  
  5. select date(current_Date) - datepart('day', current_Date) - 1
  6.  
  7. select current_timestamp, current_timestamp - extract(day from current_timestamp)
  8.  
  9. 2012-10-05 13:35:05 2012-09-30 00:00:00
Add Comment
Please, Sign In to add comment